/* Kept — Sign in */
/* ---------- AUTH ---------- */
/* PC: two equal columns, both inset by the same --ag gutter; brand on top, headline anchored low, form centred in its column */
#auth{--ag:16px;position:fixed;inset:0;z-index:45;display:grid;grid-template-columns:1fr 1fr;gap:var(--ag);padding:var(--ag);background:var(--bg);overflow:auto}
.auth-art{border-radius:30px;display:flex;flex-direction:column;justify-content:space-between;gap:28px;padding:clamp(28px,3.4vw,48px)}
.auth-top{display:flex;justify-content:space-between;align-items:center;gap:12px}
.auth-art .wordmark{font-size:var(--t-h1)}
.auth-hero{display:flex;flex-direction:column;gap:14px}
.auth-art h1{font-size:clamp(34px,4.2vw,60px);line-height:1.08;letter-spacing:-.04em;font-weight:400;margin:0;max-width:12em;text-wrap:balance;word-break:keep-all}
.auth-art .cap{font-size:var(--t-body);opacity:.8;margin:0;word-break:keep-all}
.auth-art .free{font-size:var(--t-sub);opacity:.66;margin-top:6px}
.auth-form{display:flex;align-items:center;justify-content:center;padding:24px clamp(8px,4vw,64px)}
.auth-form form{width:100%;max-width:400px}
.auth-form h2{font-size:var(--t-h1);letter-spacing:-.035em;font-weight:500;margin:0 0 6px}
.auth-form .sub{color:var(--text-2);margin:0 0 24px;word-break:keep-all}
.auth-form .input{height:52px;border-radius:16px;font-size:var(--t-body)}
.auth-form .btn{height:52px;width:100%;font-size:var(--t-body)}
.auth-links{display:flex;justify-content:space-between;margin-top:14px;font-size:var(--t-sub);flex-wrap:wrap;gap:8px 16px}
.auth-links button{color:var(--text-2)}
.auth-links button:hover{color:var(--text)}
.auth-links button:only-child{margin:0 auto}
.auth-note{font-size:var(--t-sub);color:var(--text-3);margin:10px 0 0;text-align:center;word-break:keep-all;text-wrap:balance}
.divider{display:flex;align-items:center;gap:12px;color:var(--text-3);font-size:var(--t-cap);margin:20px 0}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--line)}
/* Tablet / phone: one column; art card and form share the same side gutter, the pair sits centred in the screen height */
@media (max-width:900px){
  #auth{grid-template-columns:1fr;grid-template-rows:max-content max-content;align-content:start;align-content:safe center;justify-items:center;gap:20px;
    padding:calc(var(--ag) + env(safe-area-inset-top)) var(--ag) calc(var(--ag) + env(safe-area-inset-bottom))}
  .auth-art,.auth-form{width:100%;max-width:480px}
  .auth-art{border-radius:26px;padding:22px 22px 26px;gap:30px}
  .auth-art h1{font-size:clamp(28px,8vw,40px)}
  .auth-art .kick{font-size:var(--t-sub)}
  .auth-form{padding:4px 4px 8px}
  .auth-form form{max-width:none}
  .auth-form h2{font-size:26px}
  .auth-form .sub{margin-bottom:20px}
  .auth-links{justify-content:center}
}
@media (max-width:900px) and (max-height:700px){ #auth{align-content:start} .auth-art .free{display:none} }
