/* ============================================================
   MailSurety — auth pages (login / register)
   Demo front-end only: no backend, never stores passwords.
   ============================================================ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--bg); }

/* ---- brand aside ---- */
.auth-aside { position: relative; overflow: hidden; padding: clamp(32px, 4vw, 54px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; background: linear-gradient(165deg, var(--surface-2), var(--bg-elev) 55%, var(--bg)); border-right: 1px solid var(--line); }
.auth-glow { position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(19,186,130,.4), transparent 65%); top: -200px; right: -170px; filter: blur(55px); pointer-events: none; }
.auth-glow.two { background: radial-gradient(circle, rgba(76,184,245,.28), transparent 66%); top: auto; bottom: -220px; right: auto; left: -180px; }
.auth-glow { z-index: 0; }
.auth-aside > *:not(.auth-glow) { position: relative; z-index: 1; }
.auth-aside .brand { font-size: 21px; }
.auth-aside-mid h2 { font-size: clamp(28px, 3vw, 40px); font-weight: 800; letter-spacing: -.03em; max-width: 13ch; line-height: 1.08; }
.auth-points { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.auth-points .chk { width: 24px; height: 24px; border-radius: 7px; background: rgba(53,228,167,.14); color: var(--brand-2); display: grid; place-items: center; flex: none; margin-top: 1px; }
.auth-points .chk svg { width: 15px; height: 15px; }
.auth-aside-foot { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.auth-aside-foot .flags { font-size: 15px; }

/* ---- form side ---- */
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); }
.brand--mobile { display: none; margin-bottom: 22px; }
.demo-pill { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); background: rgba(246,178,60,.12); border: 1px solid rgba(246,178,60,.25); padding: 4px 10px; border-radius: var(--pill); margin-bottom: 18px; }
.auth-head h1 { font-size: clamp(26px, 3vw, 32px); }
.auth-head p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
#authForm { margin-top: 26px; }
.field { margin-bottom: 15px; }
.field > label { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.field .control { display: flex; align-items: center; gap: 10px; padding: 0 14px; background: var(--bg-elev); border: 1px solid var(--line-2); border-radius: var(--r); transition: border-color .2s; }
.field .control:focus-within { border-color: var(--brand); }
.field .control > svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.field input { flex: 1; background: none; border: 0; outline: none; color: var(--ink); padding: 14px 0; font-size: 15px; min-width: 0; }
.field input::placeholder { color: var(--muted); }
.field .toggle { color: var(--muted); display: grid; place-items: center; padding: 6px; }
.field .toggle:hover { color: var(--ink-2); }
.field .toggle.on { color: var(--brand-2); }
.field .toggle svg { width: 18px; height: 18px; }
.field.invalid .control { border-color: var(--red); }
.field .err { color: var(--red); font-size: 12px; margin-top: 6px; }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 9px; }
.pw-meter i { height: 4px; border-radius: 2px; background: var(--surface-3); transition: background .3s; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: var(--red); }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: var(--amber); }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: var(--brand-2); }
.pw-meter[data-level="4"] i:nth-child(-n+4) { background: var(--brand-2); }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; }
.check { position: relative; display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check .box { width: 18px; height: 18px; border: 1px solid var(--line-2); border-radius: 5px; display: grid; place-items: center; flex: none; transition: background .2s, border-color .2s; }
.check input:checked + .box { background: var(--grad-brand); border-color: transparent; }
.check input:checked + .box::after { content: ""; width: 5px; height: 9px; border: 2px solid var(--brand-ink); border-top: 0; border-left: 0; transform: rotate(45deg) translate(0, -1px); }
.check a { color: var(--brand-2); }
.link-sm { font-size: 13.5px; color: var(--brand-2); }
.link-sm:hover { text-decoration: underline; }
.auth-submit { width: 100%; }
.auth-submit.loading { opacity: .85; pointer-events: none; }
.auth-alt { margin-top: 20px; text-align: center; font-size: 14.5px; color: var(--ink-2); }
.auth-alt a { color: var(--brand-2); font-weight: 600; }
.auth-note { margin-top: 14px; text-align: center; font-size: 12px; color: var(--muted); line-height: 1.5; }
.auth-back { margin-top: 20px; text-align: center; }
.auth-back a { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.auth-back a:hover { color: var(--ink-2); }
.auth-back svg { width: 15px; height: 15px; }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .brand--mobile { display: inline-flex; }
}
