/*
 * Login-only administration screen.
 * Scoped to .auth-page so public pages keep their existing presentation.
 */
.auth-page {
  --auth-ink: #172238;
  --auth-muted: #667085;
  --auth-primary: #1668d4;
  --auth-primary-dark: #0d4ea7;
  --auth-navy: #17014c;
  --auth-line: #dfe5ee;
  --auth-soft: #f3f6fb;
}

.auth-page .page-header {
  background:
    radial-gradient(circle at 18% -30%, rgba(88, 126, 255, 0.52), transparent 43%),
    linear-gradient(120deg, #17014c 0%, #132f6d 100%) !important;
}

.auth-page .auth-content {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 22%, rgba(22, 104, 212, 0.11), transparent 30rem),
    radial-gradient(circle at 92% 86%, rgba(23, 1, 76, 0.09), transparent 28rem),
    #f6f8fc;
}

.auth-page .auth-content::before,
.auth-page .auth-content::after {
  position: absolute;
  border: 1px solid rgba(22, 104, 212, 0.1);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.auth-page .auth-content::before {
  top: 3rem;
  left: -10rem;
  width: 25rem;
  height: 25rem;
}

.auth-page .auth-content::after {
  right: -8rem;
  bottom: -12rem;
  width: 30rem;
  height: 30rem;
}

.auth-page .auth-section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5.25rem;
}

.auth-page .auth-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(22rem, 0.98fr);
  width: min(100%, 62rem);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(31, 49, 79, 0.08);
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(27, 39, 67, 0.13);
}

.auth-page .auth-intro {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 13%, rgba(119, 152, 255, 0.38), transparent 14rem),
    linear-gradient(145deg, #17014c 0%, #173d82 100%);
}

.auth-page .auth-intro::before,
.auth-page .auth-intro::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.auth-page .auth-intro::before {
  right: -8rem;
  bottom: -10rem;
  width: 24rem;
  height: 24rem;
  border: 4rem solid rgba(255, 255, 255, 0.055);
}

.auth-page .auth-intro::after {
  top: 2.25rem;
  right: 2.25rem;
  width: 0.65rem;
  height: 0.65rem;
  background: #78a7ff;
  box-shadow:
    -1.8rem 1.8rem 0 rgba(255, 255, 255, 0.25),
    -3.6rem 0 0 rgba(255, 255, 255, 0.12);
}

.auth-page .auth-kicker,
.auth-page .auth-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.auth-page .auth-kicker {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: #dbe8ff;
  background: rgba(255, 255, 255, 0.08);
}

.auth-page .auth-intro h2 {
  max-width: 28rem;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.035em;
}

.auth-page .auth-intro > p {
  max-width: 30rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
  line-height: 1.75;
}

.auth-page .auth-benefits {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-page .auth-benefits li {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: rgba(255, 255, 255, 0.91);
  font-size: 0.92rem;
}

.auth-page .auth-benefits i {
  display: inline-flex;
  flex: 0 0 2rem;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.1);
}

.auth-page .auth-form-column {
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.25rem);
  background: #fff;
}

.auth-page .auth-card {
  width: 100%;
  max-width: 25rem;
  margin: 0 auto;
}

.auth-page .auth-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 1.35rem;
  border-radius: 1rem;
  color: #fff;
  font-size: 1.2rem;
  background: linear-gradient(145deg, var(--auth-primary), #17439b);
  box-shadow: 0 0.75rem 1.6rem rgba(22, 104, 212, 0.25);
}

.auth-page .auth-eyebrow {
  margin-bottom: 0.4rem;
  color: var(--auth-primary);
}

.auth-page .auth-card h2 {
  margin-bottom: 0.65rem;
  color: var(--auth-ink);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth-page .auth-subtitle {
  margin-bottom: 1.75rem;
  color: var(--auth-muted);
  line-height: 1.65;
}

.auth-page .auth-alert {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
  padding: 0.9rem 1rem;
  border: 1px solid #f1c7cc;
  border-radius: 0.75rem;
  color: #8d2631;
  font-size: 0.88rem;
  line-height: 1.5;
  background: #fff5f6;
}

.auth-page .auth-alert i {
  margin-top: 0.15rem;
}

.auth-page .auth-field {
  margin-bottom: 1.2rem;
}

.auth-page .auth-field label {
  margin-bottom: 0.5rem;
  color: #26334a;
  font-size: 0.88rem;
  font-weight: 650;
}

.auth-page .auth-input-wrap {
  position: relative;
}

.auth-page .auth-input-wrap > i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 1rem;
  color: #8490a5;
  transform: translateY(-50%);
  pointer-events: none;
}

.auth-page .auth-input-wrap .form-control {
  min-height: 3.2rem;
  padding: 0.78rem 1rem 0.78rem 2.8rem;
  border: 1px solid var(--auth-line);
  border-radius: 0.75rem;
  color: var(--auth-ink);
  background: #fbfcfe;
  box-shadow: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-page .auth-input-wrap .form-control:focus {
  border-color: rgba(22, 104, 212, 0.72);
  background: #fff;
  box-shadow: 0 0 0 0.23rem rgba(22, 104, 212, 0.12);
}

.auth-page .auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3.15rem;
  margin-top: 1.65rem;
  border: 0;
  border-radius: 0.75rem;
  font-weight: 650;
  background: linear-gradient(115deg, var(--auth-primary), #1850af);
  box-shadow: 0 0.8rem 1.8rem rgba(22, 104, 212, 0.2);
}

.auth-page .auth-submit:hover,
.auth-page .auth-submit:focus {
  background: linear-gradient(115deg, var(--auth-primary-dark), #123d8d);
  transform: translateY(-1px);
}

.auth-page .auth-submit i {
  margin-left: 0.6rem;
}

.auth-page .auth-help {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 1.25rem 0 0;
  color: #7a8598;
  font-size: 0.8rem;
  line-height: 1.5;
}

.auth-page #signup-modal,
.auth-page #forgot-password-modal,
.auth-page #otp-modal {
  display: none !important;
}

/* The base bundle includes the icon font but only a small mapping subset. */
.auth-page .bi-arrow-right::before { content: "\f138"; }
.auth-page .bi-clock-history::before { content: "\f292"; }
.auth-page .bi-exclamation-circle::before { content: "\f333"; }
.auth-page .bi-info-circle::before { content: "\f431"; }
.auth-page .bi-key-fill::before { content: "\f44e"; }
.auth-page .bi-pencil-square::before { content: "\f4ca"; }
.auth-page .bi-shield-check::before { content: "\f52f"; }

@media (max-width: 991.98px) {
  .auth-page .auth-panel {
    grid-template-columns: 1fr;
    max-width: 42rem;
  }

  .auth-page .auth-intro {
    padding: 2.5rem;
  }

  .auth-page .auth-intro h2 {
    max-width: 34rem;
  }

  .auth-page .auth-benefits {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .auth-page .auth-benefits li {
    align-items: flex-start;
    font-size: 0.82rem;
  }

  .auth-page .auth-form-column {
    padding: 2.75rem;
  }
}

@media (max-width: 575.98px) {
  .auth-page .auth-section {
    padding: 1.5rem 0 2.75rem;
  }

  .auth-page .auth-panel {
    border-radius: 1rem;
  }

  .auth-page .auth-intro {
    padding: 2rem 1.35rem;
  }

  .auth-page .auth-intro h2 {
    font-size: 1.75rem;
  }

  .auth-page .auth-benefits {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-form-column {
    padding: 2rem 1.35rem;
  }

  .auth-page .auth-card h2 {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page .auth-submit,
  .auth-page .auth-input-wrap .form-control {
    transition: none;
  }

  .auth-page .auth-submit:hover,
  .auth-page .auth-submit:focus {
    transform: none;
  }
}
