/* ============================================================================
   ALG Portal — Authentication
   Editorial split layout, warm paper, cobalt brand panel, glass details.
   ========================================================================= */

:root {
  --paper: #f4f2ec;
  --paper-2: #ebe7db;
  --white: #fffdf8;
  --ink: #171717;
  --ink-2: #242424;
  --muted: #686660;
  --muted-2: #8a8880;
  --blue: #1229ad;
  --blue-2: #002cc0;
  --blue-rgb: 18, 41, 173;
  --lime: #a0ff27;
  --sky: #38bdf8;
  --green: #0aa365;
  --red: #dc2626;
  --border: rgba(23, 23, 23, .1);
  --border-strong: rgba(23, 23, 23, .18);
  --shadow-sm: 0 1px 3px rgba(23, 23, 23, .06);
  --shadow-lg: 0 24px 70px rgba(23, 23, 23, .12);
  --radius: 18px;
  --radius-lg: 24px;
  --pill: 9999px;
  --font-display: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--lime); color: var(--ink); }

/* ------------------------------------------------------------------ shell */
.auth-shell { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100vh; }

.auth-brand {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(28px, 4.5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  background:
    linear-gradient(155deg, rgba(6, 10, 38, .88) 0%, rgba(18, 41, 173, .78) 55%, rgba(6, 12, 45, .92) 100%),
    url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1400&q=80') center / cover no-repeat;
}
.auth-brand::before {
  content: '';
  position: absolute;
  width: 520px; height: 520px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 255, 39, .28), transparent 65%);
  pointer-events: none;
}
.auth-brand > * { position: relative; z-index: 1; }
.auth-logo { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: #fff; }
.auth-logo img { height: 40px; width: auto; display: block; }
.auth-logo-mark {
  width: 36px; height: 36px; border-radius: 11px; flex: 0 0 auto; position: relative; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), #2653ff 60%, var(--sky));
  box-shadow: 0 8px 20px rgba(18, 41, 173, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.auth-logo-mark::before {
  content: ''; width: 17px; height: 17px; border-radius: 50%;
  border: 3px solid #fff; border-right-color: transparent; transform: rotate(-38deg);
}
.auth-logo-mark::after {
  content: ''; position: absolute; width: 6px; height: 6px; right: 6px; top: 6px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(160, 255, 39, .18);
}
.auth-logo-word { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; letter-spacing: -.035em; line-height: 1; }
.auth-logo-word em { font-style: normal; color: var(--lime); }

.auth-brand-copy { max-width: 600px; }
.auth-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .78);
}
.auth-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(160,255,39,.18); }
.auth-brand h1 { color: #fff; font-size: clamp(2.15rem, 3.4vw, 3.35rem); margin: 16px 0 18px; letter-spacing: -.055em; }
.auth-brand h1 span { display: block; color: var(--lime); }
.auth-brand p { color: rgba(255, 255, 255, .8); max-width: 500px; font-size: 1rem; }
.auth-audiences { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.auth-audiences span {
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .09);
  color: #fff; padding: 7px 11px; border-radius: var(--pill);
  font-size: .7rem; font-weight: 700; backdrop-filter: blur(8px);
}

.auth-brand-bottom { display: flex; flex-direction: column; gap: 18px; }
.auth-quote {
  margin: 0; padding: 16px 18px; max-width: 540px; display: flex; gap: 14px; align-items: center;
  border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.auth-quote img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.auth-quote blockquote { margin: 0; font-size: .88rem; line-height: 1.5; color: #fff; }
.auth-quote figcaption { margin-top: 5px; font-size: .7rem; color: rgba(255, 255, 255, .62); }
.auth-stats { display: flex; gap: 28px; }
.auth-stats b { display: block; font-family: var(--font-display); font-size: 1.25rem; color: var(--lime); line-height: 1.1; }
.auth-stats span { font-size: .68rem; color: rgba(255, 255, 255, .62); }

/* ------------------------------------------------------------------ panel */
.auth-panel {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 56px);
  background: radial-gradient(70% 60% at 80% 10%, rgba(56, 189, 248, .1), transparent 65%), var(--paper);
}
.auth-card {
  width: 100%; max-width: 480px; background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(24px, 3.2vw, 38px);
  box-shadow: var(--shadow-lg);
}
.auth-mobile-logo { display: none; align-items: center; gap: 9px; width: fit-content; margin-bottom: 18px; }
.auth-mobile-logo img { height: 32px; width: auto; display: block; }
.auth-mobile-logo .auth-logo-mark { width: 30px; height: 30px; border-radius: 9px; }
.auth-mobile-logo .auth-logo-mark::before { width: 14px; height: 14px; border-width: 2.5px; }
.auth-mobile-logo .auth-logo-mark::after { width: 5px; height: 5px; right: 5px; top: 5px; }
.auth-mobile-logo .auth-logo-word { color: var(--ink); font-size: 1rem; }
.auth-mobile-logo .auth-logo-word em { color: var(--blue); }
.auth-kicker { font-size: .64rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--blue); }
.auth-card h2 { font-size: clamp(1.7rem, 2.6vw, 2.15rem); margin: 8px 0 8px; }
.auth-card-head p { color: var(--muted); font-size: .9rem; }

.auth-tabs {
  display: flex; gap: 4px; padding: 4px; border-radius: var(--pill);
  background: var(--paper); border: 1px solid var(--border); margin: 20px 0 18px;
}
.auth-tabs a { flex: 1; text-align: center; padding: 9px 12px; border-radius: var(--pill); font-size: .8rem; font-weight: 700; color: var(--muted); }
.auth-tabs a.active { background: var(--blue); color: #fff; box-shadow: 0 8px 18px rgba(var(--blue-rgb), .2); }

.auth-alert { display: none; padding: 11px 13px; border-radius: 10px; font-size: .8rem; margin-bottom: 14px; line-height: 1.45; }
.auth-alert.show { display: block; }
.auth-alert.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-alert.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.auth-alert.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* ----------------------------------------------------------------- fields */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .76rem; font-weight: 700; color: var(--ink); }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > i { position: absolute; left: 14px; color: var(--muted-2); font-size: .82rem; pointer-events: none; }
.input-wrap input, .input-wrap select {
  width: 100%; min-height: 48px; padding: 12px 44px 12px 40px;
  border: 1px solid #d9d6cc; border-radius: 12px; background: #fff; color: var(--ink);
  font-size: .9rem; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input-wrap select { padding-right: 14px; appearance: none; }
.input-wrap input:focus, .input-wrap select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(var(--blue-rgb), .12); }
.input-wrap input::placeholder { color: #a8a399; }
.input-wrap .pw-toggle {
  position: absolute; right: 5px; width: 38px; height: 38px; border: 0; border-radius: 8px;
  background: transparent; color: var(--muted); display: grid; place-items: center;
}
.input-wrap .pw-toggle:hover { background: var(--paper); color: var(--ink); }
.field .hint { font-size: .68rem; color: var(--muted); }
.field .error { display: none; font-size: .7rem; color: var(--red); }
.field.has-error .error { display: block; }
.field .field-hint { display: block; margin-top: 5px; font-size: .68rem; line-height: 1.45; color: var(--muted, #64748b); }
.field.has-error input { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 18px; font-size: .78rem; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); margin-top: 2px; flex: 0 0 auto; }
.auth-row a, .auth-bottom a { font-weight: 700; }

.btn-auth, .btn-auth-outline {
  width: 100%; min-height: 50px; border-radius: 12px; font-weight: 800; font-size: .9rem;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.btn-auth { border: 0; background: var(--blue); color: #fff; box-shadow: 0 12px 24px rgba(var(--blue-rgb), .24); }
.btn-auth:hover { background: var(--blue-2); transform: translateY(-1px); box-shadow: 0 16px 30px rgba(var(--blue-rgb), .3); }
.btn-auth:disabled, .btn-auth-outline:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-auth-outline { border: 1px solid var(--border-strong); background: #fff; color: var(--ink); }
.btn-auth-outline:hover { background: var(--paper); }
.auth-divider { display: flex; align-items: center; gap: 10px; color: var(--muted-2); font-size: .7rem; margin: 16px 0; }
.auth-divider::before, .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--border); }

.sso-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.sso-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sso-btn {
  min-height: 46px; border: 1px solid var(--border-strong); background: #fff; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px;
  font-size: .72rem; font-weight: 700; color: var(--ink); white-space: nowrap;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.sso-btn:hover { transform: translateY(-1px); border-color: var(--blue); background: rgba(var(--blue-rgb), .04); box-shadow: 0 8px 18px rgba(var(--blue-rgb), .08); }
.sso-btn i { font-size: .95rem; line-height: 1; }
.sso-btn .sso-logo { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; display: block; flex: 0 0 auto; }
.btn-schoolos { gap: 10px; }
.btn-schoolos .sso-logo-lg {
  width: 22px; height: 22px; border-radius: 6px; object-fit: contain; display: block; flex: 0 0 auto;
  background: #fff; padding: 2px;
}
.sso-btn .fa-google { color: #4285f4; }
.sso-btn .fa-apple { color: #111; }
.sso-btn .fa-school, .sso-btn .fa-building-columns { color: var(--blue); }
.sso-btn[disabled] { opacity: .6; cursor: wait; }
.sso-note { text-align: center; font-size: .67rem; color: var(--muted-2); margin: 8px 0 14px; line-height: 1.5; }
@media (max-width: 420px) { .sso-row { grid-template-columns: 1fr; } .sso-row.two { grid-template-columns: 1fr; } }
.auth-bottom { text-align: center; font-size: .8rem; color: var(--muted); margin: 18px 0 0; }
.auth-legal { font-size: .66rem; color: var(--muted-2); text-align: center; margin-top: 18px; max-width: 440px; line-height: 1.5; }
.auth-legal a { color: var(--muted); text-decoration: underline; }

/* ------------------------------------------------------------ account type */
.account-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0; }
.account-type {
  border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 11px 12px;
  display: flex; align-items: center; gap: 9px; text-align: left; font-size: .78rem; font-weight: 700; color: var(--muted);
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.account-type i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); color: var(--blue); font-size: .78rem; flex: 0 0 auto; }
.account-type.active { border-color: var(--blue); background: rgba(var(--blue-rgb), .05); color: var(--ink); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .08); }
.account-type.active i { background: var(--blue); color: #fff; }

.role-hint {
  display: flex; align-items: flex-start; gap: 7px; margin: -4px 0 16px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--paper); color: var(--muted); font-size: .68rem; line-height: 1.45;
}
.role-hint i { color: var(--blue); margin-top: 2px; flex: 0 0 auto; }

.age-choice { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.age-choice button { border: 1px solid var(--border); background: #fff; border-radius: var(--pill); padding: 8px 12px; font-size: .74rem; font-weight: 700; color: var(--muted); }
.age-choice button.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.strength { display: flex; gap: 4px; margin-top: 7px; }
.strength span { height: 4px; flex: 1; border-radius: var(--pill); background: var(--border); transition: background .2s var(--ease); }
.strength[data-score="1"] span:nth-child(1) { background: var(--red); }
.strength[data-score="2"] span:nth-child(-n+2) { background: #f59e0b; }
.strength[data-score="3"] span { background: var(--green); }

.auth-note { display: flex; gap: 8px; font-size: .7rem; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; line-height: 1.45; }
.auth-note i { color: var(--green); margin-top: 2px; }

/* -------------------------------------------------------------------- OTP */
.otp-row { display: flex; gap: 8px; justify-content: space-between; margin: 16px 0; }
.otp-row input {
  width: 46px; height: 52px; text-align: center; font-size: 1.2rem; font-weight: 800;
  border: 1px solid #d9d6cc; border-radius: 10px; outline: none; background: #fff;
}
.otp-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(var(--blue-rgb), .12); }
.otp-actions { display: flex; gap: 8px; }
.otp-actions .btn-auth { flex: 1; }
.otp-actions .btn-auth-outline { flex: 0 0 auto; width: auto; padding: 0 16px; }

/* ----------------------------------------------------------------- success */
.auth-success { text-align: center; padding: 14px 0 4px; }
.auth-success .icon { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 163, 101, .1); color: var(--green); font-size: 1.4rem; margin: 0 auto 12px; }
.auth-success h3 { font-size: 1.3rem; margin-bottom: 6px; }
.auth-success p { color: var(--muted); font-size: .86rem; }
.auth-back { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.auth-back:hover { color: var(--blue); }
[hidden] { display: none !important; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1024px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 300px; padding: 28px; gap: 24px; }
  .auth-brand h1 { font-size: clamp(2rem, 6vw, 3rem); }
  .auth-brand-bottom { display: none; }
  .auth-panel { padding: 28px 20px 40px; }
  .auth-card { max-width: 540px; }
  .auth-mobile-logo { display: flex; }
}
@media (max-width: 640px) {
  .auth-brand { min-height: 230px; }
  .auth-audiences { display: none; }
  .auth-brand p { font-size: .86rem; }
  .auth-card { padding: 22px 18px; border-radius: 18px; }
  .account-types { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .otp-row input { width: 42px; height: 48px; }
  .auth-stats { display: none; }
}
/* ============================================================ depth layer */
.auth-brand { isolation: isolate; background-size: cover; background-position: center; }
.auth-brand::before { animation: auth-orb 14s ease-in-out infinite alternate; will-change: transform, opacity; }
@keyframes auth-orb {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: .8; }
  to { transform: translate3d(-44px, 52px, 0) scale(1.18); opacity: 1; }
}
.auth-brand::after {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .55) 1px, transparent 1.4px);
  background-size: 26px 26px; opacity: .13;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 72%);
}
.auth-float-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.auth-float {
  position: absolute; border-radius: 16px; color: #fff; overflow: hidden;
  background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 24px 60px rgba(2, 8, 35, .38), inset 0 1px 0 rgba(255, 255, 255, .25);
  backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  will-change: transform;
}
.auth-float-course { top: 15%; right: 2%; width: 158px; transform: rotate(-4deg); }
.af-thumb { position: relative; height: 72px; background-size: cover; background-position: center; }
.af-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(6, 10, 38, .6)); }
.af-body { position: relative; padding: 9px 12px 12px; }
.af-body em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: .53rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.af-body b { display: block; margin-top: 4px; font-family: var(--font-display); font-size: .76rem; line-height: 1.25; letter-spacing: -.02em; }
.af-body small { display: block; margin-top: 4px; font-size: .6rem; color: rgba(255, 255, 255, .64); }
.auth-float-cert { top: 42%; right: 2%; width: 158px; transform: rotate(3deg); display: flex; align-items: center; gap: 9px; padding: 11px 11px; }
.auth-float-cert .af-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; background: rgba(160, 255, 39, .16); border: 1px solid rgba(160, 255, 39, .3); color: var(--lime); font-size: .9rem; }
.auth-float-cert b { display: block; font-family: var(--font-display); font-size: .67rem; letter-spacing: -.01em; }
.auth-float-cert small { display: block; margin-top: 2px; font-size: .56rem; color: rgba(255, 255, 255, .6); }

.auth-panel { overflow: hidden; }
.auth-panel::before, .auth-panel::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.auth-panel::before { width: 440px; height: 440px; right: -150px; top: -130px; background: radial-gradient(circle, rgba(56, 189, 248, .16), transparent 68%); animation: auth-drift 15s ease-in-out infinite alternate; }
.auth-panel::after { width: 380px; height: 380px; left: -170px; bottom: -150px; background: radial-gradient(circle, rgba(18, 41, 173, .1), transparent 68%); animation: auth-drift 19s ease-in-out infinite alternate-reverse; }
@keyframes auth-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-26px, 30px, 0) scale(1.12); }
}
.auth-panel > * { position: relative; z-index: 1; }

.auth-card { position: relative; overflow: hidden; }
.auth-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2; background: linear-gradient(90deg, var(--blue), var(--sky) 55%, var(--lime)); }
.auth-card::after { content: ''; position: absolute; width: 230px; height: 230px; right: -120px; top: -120px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(56, 189, 248, .12), transparent 70%); }
.auth-card > * { position: relative; z-index: 1; }

.auth-kicker { display: inline-flex; align-items: center; gap: 8px; }
.auth-kicker::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--blue); }
.auth-secure { display: inline-flex; align-items: center; gap: 6px; margin-top: 11px; padding: 5px 9px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--paper); color: var(--muted); font-size: .63rem; font-weight: 700; }
.auth-secure i { color: var(--green); }

.btn-auth { position: relative; overflow: hidden; isolation: isolate; }
.btn-auth::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, transparent 25%, rgba(255, 255, 255, .28) 50%, transparent 75%); transform: translateX(-140%); transition: transform .7s var(--ease); }
.btn-auth:hover::after { transform: translateX(140%); }

.account-type { position: relative; overflow: hidden; }
.account-type::after { content: ''; position: absolute; inset: 0; opacity: 0; background: linear-gradient(120deg, transparent, rgba(var(--blue-rgb), .06), transparent); transition: opacity .25s var(--ease); }
.account-type:hover::after, .account-type.active::after { opacity: 1; }

.auth-success .icon { animation: auth-pop .5s var(--ease) both; }
@keyframes auth-pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (max-width: 1399px) { .auth-float-layer { display: none; } }

/* Keep the brand panel viewport-height on tall forms (e.g. create account)
   instead of stretching it to the full form height. */
@media (min-width: 1025px) {
  .auth-brand { position: sticky; top: 0; align-self: start; height: 100vh; min-height: 100vh; }
}
@media (min-width: 1025px) and (max-height: 780px) {
  .auth-brand { padding: 32px 40px; gap: 24px; }
  .auth-brand h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
  .auth-quote { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-brand::before, .auth-panel::before, .auth-panel::after, .auth-success .icon { animation: none !important; }
  .btn-auth::after { display: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
