:root {
  --auth-primary: hsl(8, 77%, 56%);
  --auth-primary-soft: hsl(8, 77%, 95%);
  --auth-text: #212529;
  --auth-muted: #6c757d;
  --auth-border: hsl(213, 22%, 84%);
  --auth-border-soft: hsl(213, 22%, 93%);
  --auth-surface: #ffffff;
  --auth-canvas: #f8f9fa;
  --auth-radius: 0.75rem;
  --auth-shadow: 0 1.25rem 3rem rgba(33, 37, 41, 0.1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body,
#main {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(circle at 15% 10%, rgba(229, 79, 56, 0.08), transparent 28rem),
    linear-gradient(145deg, var(--auth-canvas), #ffffff 55%, #f3f4f6);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 0.875rem;
  line-height: 1.5;
}

#main {
  display: grid;
  min-height: 100vh;
}

.oh-auth {
  position: relative;
  display: grid;
  grid-template-columns: minmax(20rem, 27rem) minmax(18rem, 31rem);
  align-items: center;
  justify-content: center;
  gap: clamp(2rem, 6vw, 6rem);
  width: min(calc(100% - 3rem), 72rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 3rem 0;
}

.oh-auth::before {
  position: absolute;
  inset: 2rem auto 2rem 50%;
  z-index: -1;
  width: 1px;
  content: "";
  background: linear-gradient(transparent, var(--auth-border-soft), transparent);
}

.oh-auth-card {
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid var(--auth-border-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--auth-shadow);
}

.oh-onboarding-card__title {
  margin: 0 0 0.45rem !important;
  color: var(--auth-text);
  font-size: clamp(1.45rem, 3vw, 1.85rem) !important;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.oh-auth-card > .text-muted {
  max-width: 23rem;
  margin: 0 auto 1.65rem;
  color: var(--auth-muted) !important;
  font-size: 0.86rem;
}

.oh-form-group,
.oh-input-group {
  width: 100%;
}

.oh-input-group {
  margin-bottom: 1rem;
}

.oh-label {
  display: block;
  margin-bottom: 0.4rem;
  color: #343a40;
  font-size: 0.78rem;
  font-weight: 650;
}

.oh-input,
.oh-auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]) {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--auth-border) !important;
  border-radius: 0.55rem !important;
  outline: 0;
  color: var(--auth-text);
  background: var(--auth-surface);
  box-shadow: none !important;
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.oh-input:focus,
.oh-auth-card input:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 3px rgba(229, 79, 56, 0.12) !important;
}

.oh-password-input-container {
  position: relative;
}

.oh-password-input-container .oh-input {
  padding-right: 3rem;
}

.oh-password-input--toggle {
  position: absolute;
  top: 50%;
  right: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  min-height: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0.45rem !important;
  transform: translateY(-50%);
  color: var(--auth-muted);
  background: transparent !important;
  box-shadow: none !important;
}

.oh-auth-card .oh-btn--secondary,
.oh-auth-card .oh-onboarding-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--auth-primary) !important;
  border-radius: 0.55rem !important;
  color: #ffffff !important;
  background: var(--auth-primary) !important;
  box-shadow: 0 0.45rem 1rem rgba(229, 79, 56, 0.18) !important;
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.oh-auth-card .oh-btn--secondary:hover,
.oh-auth-card .oh-onboarding-card__button:hover {
  transform: translateY(-1px);
  filter: brightness(0.94);
  box-shadow: 0 0.65rem 1.25rem rgba(229, 79, 56, 0.22) !important;
}

.oh-link--secondary {
  color: var(--auth-primary) !important;
  font-weight: 600;
}

.oh-auth-brand {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 25rem;
  padding: 2rem;
}

.oh-auth-brand img {
  display: block;
  width: min(100%, 21rem) !important;
  height: auto !important;
  max-height: 16rem;
  object-fit: contain;
}

.oh-alert-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  width: min(24rem, calc(100vw - 2rem));
}

.oh-alert {
  border-radius: var(--auth-radius);
  box-shadow: 0 0.75rem 2rem rgba(33, 37, 41, 0.14);
}

.errorlist {
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem !important;
  border: 1px solid rgba(220, 53, 69, 0.24) !important;
  border-radius: 0.55rem !important;
  color: #842029 !important;
  background: rgba(220, 53, 69, 0.08) !important;
  font-size: 0.78rem;
  list-style: none;
}

.oh-onboarding {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1.25rem;
}

.oh-onboarding-card {
  width: min(100%, 42rem);
  border: 1px solid var(--auth-border-soft);
  border-radius: 1rem;
  background: #ffffff;
  box-shadow: var(--auth-shadow);
  overflow: hidden;
}

.oh-onboarding-card::before {
  display: block;
  height: 0.25rem;
  content: "";
  background: var(--auth-primary);
}

.oh-onboarding-card__container {
  padding: clamp(1.5rem, 5vw, 2.5rem) !important;
}

.oh-onboarding__info-container {
  align-items: flex-start;
  gap: 1rem;
}

.oh-onboarding__title {
  margin: 0 0 0.5rem;
  color: var(--auth-text);
  font-size: 1.2rem;
  line-height: 1.35;
}

.oh-onboarding__content {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
}

@media (max-width: 767.98px) {
  .oh-auth {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    width: min(calc(100% - 1.5rem), 29rem);
    gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .oh-auth::before {
    display: none;
  }

  .oh-auth-card {
    padding: 1.35rem;
    border-radius: 0.8rem;
  }

  .oh-auth-brand {
    order: -1;
    min-height: auto;
    padding: 0.25rem;
  }

  .oh-auth-brand img {
    width: min(60vw, 10rem) !important;
    max-height: 6rem;
  }

  .oh-onboarding__info-container {
    flex-direction: column;
  }
}

@media (max-width: 359.98px) {
  .oh-auth {
    width: calc(100% - 1rem);
  }

  .oh-auth-card {
    padding: 1rem;
  }
}
