.auth-shell {
  --cs-accent:var(--ink); --cs-text:var(--ink); --cs-line:var(--line);
  min-height:100dvh; box-sizing:border-box; position:relative; isolation:isolate;
  display:grid; place-items:center; padding:48px 16px; color:var(--ink);
  background:linear-gradient(180deg,#241038,#0e0915 45%,#09080c 74%);
  font:400 14px/1.5 var(--sans); color-scheme:dark;
}
.auth-cover { position:fixed; inset:0; z-index:-1; pointer-events:none }
.gradient-ascii-canvas { width:100%; height:100%; display:block }
.auth-stack { width:min(100%,440px); display:grid; justify-items:center; gap:24px }
.auth-shell .auth-brand { position:static; transform:none; display:flex; justify-content:center; margin:0 auto 22px }
.auth-form { width:100%; min-width:0; box-sizing:border-box; border:1px solid #363636;
  border-radius:var(--cab-radius-panel); padding:clamp(21px,4vw,38px); background:#141414 }
.auth-form h1 { text-align:center; margin:0; font:500 clamp(24px,3vw,32px)/1.14 var(--sans); letter-spacing:-.045em }
.auth-intro { text-align:center; margin:10px 0 24px; font:400 14px/1.5 var(--sans); color:var(--secondary); overflow-wrap:anywhere }
.auth-switch { text-align:center }
.auth-form label{display:block;color:#dddeda;font:500 14px/1.4 var(--sans);margin:18px 0 8px}
.auth-field{background:#202221;border:1px solid #393b39;border-radius:var(--cab-radius-control);display:flex;align-items:center;padding:0 14px;gap:10px;min-height:49px}.auth-field:focus-within,.auth-code:focus-within [data-active]{outline:2px solid #cccfc5;outline-offset:2px}
.auth-field>span{color:#94998f;font:16px var(--mono)}.auth-field input{flex:1;width:0;font:inherit;color:inherit;outline:none;border:0;background:transparent;padding:13px 0}
.auth-field input::placeholder{color:#81867f}.auth-eye,.auth-switch button,.auth-link{border:0;background:none;color:inherit;cursor:pointer;font:inherit}.auth-eye{padding:6px;display:grid;place-items:center;color:#bec2b9}
.auth-feedback{min-height:30px;padding:5px 0;color:#eebdb1;font-size:13px}.auth-submit,.auth-secondary{width:100%;min-height:40px}
.auth-switch,.auth-link{margin:23px 0 0;font-size:14px;color:#a2a69f}.auth-switch button,.auth-link{color:#e5e9df;text-decoration:underline;text-underline-offset:3px}.auth-switch button{padding:4px}
.auth-code{position:relative;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.auth-code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;z-index:2;cursor:text}.auth-code [data-cell]{display:grid;place-items:center;height:58px;background:#222422;border:1px solid #42453f;border-radius:var(--cab-radius-inner);color:#f0f1e9;font:26px var(--mono)}.auth-code[data-state=error] [data-cell]{border-color:#cb9586}
.auth-form .cs-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.auth-form button:focus-visible{outline:2px solid #ddd;outline-offset:3px}

.auth-form { -webkit-app-region:no-drag }
.auth-form form { margin-top:28px }
.auth-field { position:relative; height:50px; margin-top:18px; padding-inline:14px; gap:10px }
.auth-prefix { display:block; flex:none; width:18px; height:18px; fill:none; stroke:#a2a69f; stroke-width:1.8; stroke-linecap:round }
.auth-field input { height:100%; min-width:0; padding:0 }
.auth-field label { position:absolute; left:39px; top:50%; transform:translateY(-50%); margin:0; padding:0 4px; cursor:text;
  color:#a2a69f; font:400 15px/1.2 var(--sans); transition:top 160ms ease,left 160ms ease,font-size 160ms ease,color 160ms ease }
.auth-field:focus-within label,.auth-field input:not(:placeholder-shown)+label,.auth-field input:autofill+label {
  top:0; left:12px; background:linear-gradient(#141414 50%,#202221 50%); color:#dddeda; font-size:12px }
.auth-field:focus-within { outline:none; border-color:#d8d9d5 }
.auth-eye { flex:none; width:32px; height:32px }
@media (prefers-reduced-motion:no-preference) {
  .auth-cover { animation:auth-sky-in 600ms ease-out both }
  .auth-form { animation:auth-card-in 470ms cubic-bezier(.2,.75,.25,1) 3s both }
  .auth-cover[data-revealed] + .auth-stack .auth-form { animation-name:auth-card-reveal; animation-delay:0s }
  @keyframes auth-card-reveal { from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:none} }
  @keyframes auth-sky-in { from {opacity:0} to {opacity:1} }
  @keyframes auth-card-in { from {opacity:0;transform:translateY(10px)} to {opacity:1;transform:none} }
}
@media (prefers-reduced-motion:reduce) { .auth-field label {transition:none} }

.auth-shell ::selection, .auth-shell input::selection { background-color:#fff; color:#101010 }
.auth-form .auth-submit { margin-top:30px; padding:9px 16px; white-space:normal; overflow-wrap:anywhere }
.auth-form .auth-submit:disabled { opacity:1 }
@media (prefers-reduced-motion:no-preference) {
  .auth-submit[data-phase=error] span { animation:auth-message-in 180ms ease-out }
  @keyframes auth-message-in { from {opacity:0;transform:translateY(2px)} to {opacity:1;transform:none} }
}
