/* Sign-in window (variant A, 2026-10-22): Google and Apple on top, a 6-digit email code below */
.auth-sub{margin:-8px 0 22px;font-size:15px}
/* as wide as Google's own button can be (400px drawn at 1.2), so every row of the window is one width */
dialog:has(.auth-form),dialog:has(.auth-busy){max-width:min(560px,calc(100vw - 28px))}
.auth-sso{display:grid;gap:10px}
/* Google's own button (Google Identity Services) sits in the place of ours, as tall as the Apple one */
.auth-gsi{position:relative;height:48px;display:flex;align-items:center;justify-content:center}
.auth-gsi>.auth-btn{width:100%;gap:9px;font-size:16.5px;font-weight:500;color:#3c4043;transition:opacity .25s ease}
.auth-gsi>.auth-btn svg{width:23px;height:23px}
.auth-gsi.real>.auth-btn{opacity:0}
.auth-fine a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.auth-btn{display:flex;align-items:center;justify-content:center;gap:10px;min-height:48px;border-radius:7px;font:600 15px var(--body);border:1px solid #cbd1db;background:#fff;color:var(--ink);width:100%;transition:background .2s}
.auth-btn:hover{background:#f3f5f8}
.auth-btn svg{width:20px;height:20px;flex:none}
/* Apple's black button, with the corners and type of Google's next to it; the logo's empty sides are trimmed so the
   logo and the words sit in the middle, and it rides a little high as on Apple's own button */
.auth-btn.apple{background:#000;color:#fff;border-color:#000;border-radius:5px;font-weight:500;font-size:16px;gap:8px}
.auth-btn.apple:hover{background:#1d1f23}
.auth-btn.apple svg{margin:-3px -4px 0 -3px}
.auth-or{display:flex;align-items:center;gap:12px;color:#8a929c;font-size:12.5px;margin:18px 0 0}
.auth-or:before,.auth-or:after{content:'';height:1px;background:var(--line);flex:1}
.auth-or+.auth-form{margin-top:14px}
.auth-fine{font-size:12px;color:var(--muted);text-align:center;margin:16px 0 0}
.auth-sent{background:#f3f6ff;border-radius:8px;padding:10px 12px;font-size:14px;color:#475975;margin:0 0 4px}
.auth-sent b{color:var(--ink);font-weight:600;overflow-wrap:anywhere}
.auth-error{color:#b42318;font-size:13px;font-weight:500;margin:-4px 0 12px}
/* One real input (keeps iPhone code autofill and paste), drawn as six boxes */
.auth-code{position:relative;display:block;margin:0 0 16px}
.auth-code input{position:absolute;inset:0;width:100%;height:100%;opacity:0;font-size:16px;border:0;padding:0;cursor:text;caret-color:transparent}
.auth-boxes{display:grid;grid-template-columns:repeat(6,1fr);gap:8px}
.auth-boxes i{height:58px;border:1px solid #ced5de;border-radius:8px;display:grid;place-items:center;font:600 24px var(--body);font-style:normal;color:var(--ink)}
.auth-boxes i.on{border:2px solid var(--blue)}
.auth-links{display:flex;justify-content:space-between;gap:12px;margin-top:14px;font-size:13px}
.auth-links .link-button{font-size:13px}
.auth-links .link-button:disabled{color:var(--muted);opacity:1;text-decoration:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:560px){.auth-boxes{gap:6px}.auth-boxes i{height:52px;font-size:22px}}
/* Google, Apple or the code said yes: the window keeps its size and only says Opening your workspace */
.auth-busy{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;text-align:center}
.auth-busy p{margin:0;font:600 17px var(--body);color:var(--ink)}
.auth-spin{width:30px;height:30px;border-radius:50%;border:3px solid #dbe4ff;border-top-color:var(--blue);animation:auth-spin .8s linear infinite}
@keyframes auth-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-spin{animation-duration:2.4s}}
