/* ==========================================================================
   pages/auth.css — Sign in, Create account, Forgot / Reset password, Verify email
   (2026-11 rebuild). Metrics come from the AUTH section of Coynitt-Portal.dc.html
   (inline styles of the sign-in card and hero). Loads after coynitt.css; uses its
   tokens and cy-* components and only adds auth-* classes.
   ========================================================================== */

/* ── Hero (left brand panel) ──────────────────────────────────────────────── */
.auth-logo{height:28px;width:auto;align-self:flex-start}
.auth-hero__body{max-width:520px}
.auth-pill{padding:8px 14px;gap:10px}
/* The prototype keeps three tiles in a row at every width; the auth tiles carry
   two-digit values, so they fit a phone without the overflow the prototype had. */
.auth-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
.auth-tiles .cy-hero-tile__s{margin-top:2px;line-height:1.4}

/* ── Card (right column) ──────────────────────────────────────────────────── */
.auth-card{width:100%;max-width:440px;padding:36px;animation:rise .6s var(--ease)}
.auth-seg{margin-bottom:26px}
.auth-seg .cy-seg__btn:hover{color:var(--ink)}
.auth-seg .cy-seg__btn.is-on:hover{color:var(--inkBtnFg)}
.auth-back{margin-bottom:26px}
.auth-title{font-size:30px;font-weight:800;letter-spacing:-.03em;line-height:1.05}
.auth-sub{font-size:14px;color:var(--soft);margin-top:8px}
.auth-sub strong{color:var(--ink);font-weight:700;overflow-wrap:anywhere}
.auth-form{display:flex;flex-direction:column;gap:14px;margin-top:24px}
.auth-label-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.auth-label-row a{font-size:12px;font-weight:700}
.auth-pw{letter-spacing:.1em}
.auth-note{font-size:12px;color:var(--soft);line-height:1.5}
.auth-submit{margin-top:6px;padding:15px 22px}
.auth-alt{padding:13px 22px;font-size:14px}
.auth-check{padding:12px 14px;border-radius:16px;background:var(--glassIn);-webkit-backdrop-filter:none;backdrop-filter:none}
.auth-check .cy-check__box{border-color:var(--fieldBd)}
.auth-check .cy-check__text{font-size:13px}
.auth-check .cy-check__text a{font-weight:700}
.auth-check.is-error{border-color:var(--err)}
.auth-form .cy-input:disabled,.auth-form .cy-check:has(input:disabled){opacity:.5;cursor:not-allowed}
.auth-form .cy-note{margin-top:-2px}
.auth-help{margin-top:18px;font-size:13px;color:var(--soft);text-align:center}
.auth-help a,.auth-help button{font-weight:700;color:var(--deep)}
.auth-help button:hover{color:var(--teal)}
.auth-help button:disabled{color:var(--mute)}
.auth-foot{margin-top:22px;font-size:12px;color:var(--mute);text-align:center;line-height:1.5;text-wrap:balance}
.auth-foot + .auth-foot{margin-top:8px}

/* ── Result states (sent, expired, saved, verifying) ──────────────────────── */
.auth-state{display:flex;flex-direction:column;align-items:center;text-align:center}
.auth-state .auth-title{margin-top:22px}
.auth-state .auth-sub{max-width:34ch}
.auth-state__actions{display:flex;flex-direction:column;gap:12px;width:100%;margin-top:24px}
.auth-badge{width:72px;height:72px;border-radius:50%;display:grid;place-items:center;flex-shrink:0;animation:popSpring .6s var(--spring) both}
.auth-badge--err{background:var(--errTint);border:1px solid var(--errBd);color:var(--err)}
.auth-badge--wait{background:var(--tint);border:1px solid var(--tint2);animation:none}

/* ── Verify email (standalone card, KYC-card layout) ─────────────────────── */
.auth-verify .auth-state{margin-top:30px}
.auth-state__actions--end{flex-direction:row;justify-content:flex-end}

/* ── Page footer (legal line) over the aurora ─────────────────────────────── */
.auth-footer{position:relative;z-index:1;margin:6px auto 0;padding:18px 16px 30px;text-wrap:balance}

@media (max-width:719px){
  .auth-pill{border-radius:18px;align-items:flex-start;text-wrap:balance}
  .auth-pill .cy-dot{margin-top:5px}
  .auth-tiles{gap:10px}
  .auth-tiles .cy-hero-tile{padding:14px 12px}
  .auth-tiles .cy-hero-tile__k{letter-spacing:.1em}
  .auth-state__actions--end{flex-direction:column}
  .auth-state__actions--end .cy-btn{width:100%}
  .auth-footer{padding:12px 16px 28px}
}
.auth-closed{display:grid;gap:10px;margin-top:22px}
