@charset "UTF-8";

/* ─── Brand tokens ──────────────────────────────────────────────
   Primary = navy (from the Aurora Central School seal ring), used
   consistently for every interactive element: button, focus rings,
   links, icons. Gold = secondary brand color (from the seal's sun),
   used only as a decorative accent on the hero panel — never on
   interactive controls — so nothing competes with the primary blue.
------------------------------------------------------------------ */
:root {
  --auth-navy-950: #081b36;
  --auth-navy-900: #0d2a52;
  --auth-navy-800: #123b7a;
  --auth-navy-700: #1a4d99;
  --auth-navy-600: #2f6fc4;
  --auth-gold-500: #f4b400;
  --auth-gold-300: #ffd873;

  --auth-primary: var(--auth-navy-700);
  --auth-primary-dark: var(--auth-navy-800);
  --auth-primary-light: var(--auth-navy-600);
  --auth-focus-ring: rgba(26, 77, 153, 0.18);

  --auth-surface: #ffffff;
  --auth-text-900: #101828;
  --auth-text-600: #475467;
  --auth-text-400: #98a2b3;
  --auth-border: #e4e7ec;
}

/* ─── Body / Page background ────────────────────────────────────
   Neutral soft gradient instead of a full-bleed photo — the campus
   photo now lives inside the hero panel where it reads as texture,
   not as competition for the form.
------------------------------------------------------------------ */
body {
  background: radial-gradient(120% 140% at 15% 0%, #eef3fb 0%, #e3ebf7 45%, #d9e3f2 100%);
  min-height: 100vh;
  margin: 0;
}

/* ─── Page wrapper ──────────────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  width: 100%;
  padding: 2.5rem 1.5rem;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-width: 0;
  max-width: 960px;
  min-height: 600px;
  background: var(--auth-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow:
    0 24px 60px -12px rgba(13, 42, 82, 0.28),
    0 4px 12px rgba(13, 42, 82, 0.08);
}

/* ─── Hero / brand panel ────────────────────────────────────────── */
.auth-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 3rem 2.75rem;
  background: linear-gradient(160deg, var(--auth-navy-950) 0%, var(--auth-navy-800) 100%);
  overflow: hidden;
  isolation: isolate;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../../img/backgrounds/bg.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) contrast(1.05);
  mix-blend-mode: luminosity;
  opacity: 0.28;
  z-index: -2;
}

.auth-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(8, 27, 54, 0.94) 0%, rgba(18, 59, 122, 0.86) 60%, rgba(26, 77, 153, 0.82) 100%);
  z-index: -1;
}

.auth-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 30% 20%, black, transparent 70%);
  z-index: -1;
}

.auth-hero-content {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-hero-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--auth-gold-300);
  margin-bottom: 0.6rem;
}

.auth-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 0.85rem;
  letter-spacing: 0.2px;
}

.auth-hero-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 320px;
  margin: 0 0 2rem;
}

.auth-hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.auth-hero-points li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.85);
}

.auth-hero-points i {
  flex: none;
  font-size: 1rem;
  color: var(--auth-gold-500);
}

.auth-hero-footer {
  position: relative;
  font-size: 0.75rem;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.45);
  margin: 2rem 0 0;
  text-align: center;
}

/* ─── Form panel ────────────────────────────────────────────────── */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.75rem;
}

.auth-form-inner {
  width: 100%;
  max-width: 340px;
}

/* Brand row — the seal isn't legible against the dark hero panel at small
   sizes, so it lives here on the white panel instead, on every screen size. */
.auth-form-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.auth-form-brand img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

/* ─── Typography ────────────────────────────────────────────────── */
.auth-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--auth-text-900);
  margin: 0 0 0.4rem;
  letter-spacing: 0.1px;
}

.auth-desc {
  font-size: 0.875rem;
  color: var(--auth-text-600);
  line-height: 1.5;
  margin: 0 0 1.75rem;
}

/* ─── Labels ────────────────────────────────────────────────────── */
.auth-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--auth-text-600);
  margin-bottom: 6px;
}

/* ─── Input icons ───────────────────────────────────────────────── */
.input-icon-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: var(--auth-text-400);
  font-size: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 5;
  transition: color 0.2s ease;
}

.input-icon-right {
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: var(--auth-text-400);
  font-size: 18px;
  display: flex;
  align-items: center;
  z-index: 5;
  transition: color 0.2s ease;
  cursor: pointer;
}

.input-icon-right:hover,
.input-icon-right:focus-visible {
  color: var(--auth-primary);
}

.input-icon-wrap:focus-within .input-icon {
  color: var(--auth-primary);
}

/* ─── Inputs ────────────────────────────────────────────────────── */
.auth-input.form-control {
  background: #f8fafc !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 10px !important;
  color: var(--auth-text-900) !important;
  font-size: 0.875rem;
  padding: 11px 40px 11px 40px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input.form-control::placeholder {
  color: var(--auth-text-400);
}

.auth-input.form-control:focus {
  border-color: var(--auth-primary) !important;
  box-shadow: 0 0 0 3px var(--auth-focus-ring) !important;
  background: #ffffff !important;
  outline: none;
}

/* ─── Autofill ──────────────────────────────────────────────────── */
.auth-input.form-control:-webkit-autofill,
.auth-input.form-control:-webkit-autofill:hover,
.auth-input.form-control:-webkit-autofill:focus,
.auth-input.form-control:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 60px #f8fafc inset !important;
  box-shadow: 0 0 0 60px #f8fafc inset !important;
  -webkit-text-fill-color: var(--auth-text-900) !important;
  caret-color: var(--auth-text-900);
  border-color: var(--auth-border) !important;
  transition: background-color 9999s ease-in-out 0s;
}

/* ─── Button ────────────────────────────────────────────────────── */
.auth-btn {
  background: linear-gradient(135deg, var(--auth-navy-700) 0%, var(--auth-navy-800) 100%) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 12px !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(18, 59, 122, 0.28);
}

.auth-btn:hover {
  background: linear-gradient(135deg, var(--auth-navy-600) 0%, var(--auth-navy-700) 100%) !important;
  box-shadow: 0 6px 22px rgba(18, 59, 122, 0.36);
  transform: translateY(-2px);
}

.auth-btn:active {
  transform: translateY(0);
  background: linear-gradient(135deg, var(--auth-navy-800) 0%, var(--auth-navy-950) 100%) !important;
  box-shadow: 0 2px 8px rgba(18, 59, 122, 0.24);
}

.auth-btn:focus-visible {
  outline: 2px solid var(--auth-navy-600);
  outline-offset: 2px;
}

/* ─── Footer ────────────────────────────────────────────────────── */
.auth-footer-text {
  text-align: center;
  font-size: 0.75rem;
  letter-spacing: 0.3px;
  color: var(--auth-text-400);
  margin: 1.5rem 0 0;
}

/* ─── Focus-visible fallback for keyboard users ───────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--auth-primary);
  outline-offset: 2px;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
  .auth-shell {
    grid-template-columns: minmax(0, 1fr);
    max-width: 460px;
    min-height: 0;
  }

  .auth-hero {
    padding: 2rem 2rem 1.75rem;
  }

  .auth-hero-content {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
  }

  .auth-hero-heading {
    min-width: 0;
  }

  .auth-hero-kicker {
    margin-bottom: 0.2rem;
    white-space: normal;
  }

  .auth-hero-title {
    font-size: 1.4rem;
    margin: 0;
  }

  .auth-hero-tagline,
  .auth-hero-points {
    display: none;
  }

  .auth-hero-footer {
    display: none;
  }

  .auth-form-panel {
    padding: 2rem 2rem 2.25rem;
  }
}

@media (max-width: 575.98px) {
  .auth-page {
    padding: 1.25rem;
  }

  .auth-shell {
    border-radius: 18px;
  }

  .auth-hero {
    padding: 1.75rem 1.5rem;
  }

  .auth-form-panel {
    padding: 1.75rem 1.5rem 2rem;
  }

  .auth-title {
    font-size: 1.35rem;
  }
}
