/* Shared existing-account sign-in surface. Provider policy comes from the server. */
.auth-entry *,.auth-login *{box-sizing:border-box}
.auth-entry,.auth-login{--auth-ink:var(--via-text);--auth-muted:var(--via-muted);--auth-line:var(--via-line);--auth-surface:var(--via-card);--auth-soft:var(--via-soft);--auth-accent:var(--via-accent);background:var(--via-bg);color:var(--auth-ink)}
.auth-entry header,.auth-login .via-header{max-width:1100px;margin:auto;padding:20px 28px;border-bottom:1px solid var(--auth-line);display:flex;align-items:center;justify-content:space-between;gap:20px}
.auth-entry header .brand.via-brand,.auth-login .via-header .brand.via-brand{width:180px;flex:none}
.auth-entry .header-actions{flex-direction:row;align-items:center;gap:22px}
.auth-entry header .info:last-child{display:none}
.auth-entry main{padding:24px 24px 64px;min-height:0}
.auth-entry #flow{max-width:460px;margin:auto;outline:none}
.auth-entry .back{font-size:14px;margin:0 0 12px;min-height:44px;color:var(--auth-muted)}
.auth-card{width:100%;max-width:460px;margin:0 auto;padding:36px;background:var(--auth-surface);border:1px solid var(--auth-line);border-radius:22px;box-shadow:0 16px 48px #11182708;overflow-wrap:anywhere}
.auth-card .eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:var(--auth-accent);margin:0 0 12px}
.auth-card h1,.auth-entry #flow h1{font-size:clamp(28px,6vw,34px);line-height:1.15;letter-spacing:-.035em;margin:0 0 12px;white-space:normal}
.auth-entry .panel{padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
.auth-entry #flow-copy,.auth-card .auth-lead{font-size:15px;line-height:1.6;color:var(--auth-muted);margin:0 0 24px}
.auth-card .auth-closure{font-size:13px;line-height:1.65;margin:0 0 24px;padding:13px 15px;border:1px solid var(--auth-line);border-radius:12px;background:var(--auth-soft);color:var(--auth-muted)}
.auth-card :is(button,input,select){font:inherit;box-sizing:border-box;min-height:48px;border:1px solid var(--auth-line);border-radius:11px;padding:11px 15px;width:100%;background:var(--auth-surface);color:var(--auth-ink)}
.auth-card button{cursor:pointer;font-size:15px;font-weight:600;line-height:24px}
.auth-card button:hover:not(:disabled){border-color:var(--auth-accent);background:var(--auth-soft)}
.auth-card button:disabled{cursor:wait;opacity:.65}
.auth-card #social{display:grid;gap:12px;margin:0}
.auth-card #social button.auth-provider{display:flex;align-items:center;justify-content:center;gap:12px;background:#fff;color:#111827;border-color:var(--auth-line);box-shadow:0 2px 3px #11182705}
.auth-provider img{display:block;width:20px;height:20px;flex:none}
.auth-card #homepage-auth{margin:0}
.auth-card #cancel{margin-top:12px;background:transparent;color:var(--auth-muted);border-color:transparent}
.auth-card #retry-signin{margin-top:12px}
.auth-card [role=status]{font-size:14px;line-height:1.6;color:var(--auth-muted);margin:16px 0;overflow-wrap:anywhere}
.auth-card [role=status]:empty{display:none}
.auth-card form{margin:16px 0}
.auth-card label{display:block;font-size:14px;margin:14px 0;color:var(--auth-ink)}
.auth-card label input,.auth-card label select{display:block;margin-top:6px}
.auth-card .auth-help{margin-top:24px;padding-top:20px;border-top:1px solid var(--auth-line);text-align:center;font-size:13px;line-height:1.65;color:var(--auth-muted)}
.auth-card .auth-help span{display:block}
.auth-card .auth-help a,.auth-card #entry-signin{display:inline-block;font-size:13px;min-height:44px;padding:10px 0;color:var(--auth-accent);text-underline-offset:4px}
.auth-card :is(button,a,input,select):focus-visible{outline:3px solid var(--iter-focus);outline-offset:3px}
.auth-entry footer{max-width:960px;padding-top:24px;gap:20px;font-size:12px}
.auth-entry footer .logo-panel img{width:72px}
.auth-login main{margin:0;max-width:none;padding:0;background:transparent;border:0;box-shadow:none}
.auth-login .via-header{margin-bottom:48px}
.auth-login .auth-card{margin-bottom:56px}
.auth-card [hidden]{display:none!important}
@media(max-width:640px){.auth-entry header,.auth-login .via-header{padding:12px 20px;gap:12px;flex-wrap:wrap}.auth-entry header .brand.via-brand,.auth-login .via-header .brand.via-brand{width:140px}.auth-entry .header-actions{width:auto;margin-left:auto;gap:8px}.auth-entry .header-actions>a.info{display:none}.auth-entry .preferences{gap:8px}.auth-entry .preferences label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.auth-entry .preferences select,.auth-entry #theme{font-size:12px;padding:8px;max-width:100px}.auth-entry main{padding:16px 20px 40px}.auth-card{padding:28px 24px;border-radius:18px}.auth-login .via-header{margin-bottom:32px}.auth-login .auth-card{width:calc(100% - 40px)}.auth-entry footer{padding:20px;flex-wrap:wrap}.auth-entry footer>span{margin:0}.auth-entry footer p{margin:0}.auth-entry .back{margin-bottom:8px}}

/* Shared by homepage and standalone sign-in. Session success stays visible
   until navigation completes; the continue link never starts authentication. */
.auth-card .auth-progress{padding:24px;margin:20px 0;border:2px solid var(--auth-accent);border-radius:16px;background:var(--auth-soft);text-align:center;outline-offset:4px}
.auth-card .auth-progress h2{font-size:clamp(23px,5vw,28px);line-height:1.2;letter-spacing:-.025em;margin:14px 0 10px;color:var(--auth-ink)}
.auth-card .auth-progress [role=status]{font-size:16px;line-height:1.6;margin:0;color:var(--auth-ink)}
.auth-progress-indicator{display:inline-block;width:36px;height:36px;border:4px solid var(--auth-line);border-top-color:var(--auth-accent);border-radius:50%;animation:auth-progress-spin 1s linear infinite}
.auth-progress[data-complete=true] .auth-progress-indicator{animation:none;border-color:var(--auth-accent)}
.auth-progress[data-complete=true] .auth-progress-indicator::after{content:'✓';display:block;color:var(--auth-accent);font-size:22px;line-height:28px;font-weight:700}
.auth-card .auth-progress-continue{display:block;border-radius:10px;padding:12px 16px;min-height:48px;margin-top:20px;color:var(--auth-ink);background:var(--auth-surface);border:1px solid var(--auth-accent);font-size:16px;font-weight:650;text-underline-offset:4px}
.auth-progress:focus-visible{outline:3px solid var(--auth-accent)}
@keyframes auth-progress-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.auth-progress-indicator{animation:none;border-color:var(--auth-accent)}}

/* Modern fields, one step at a time (login-steps.mjs sets data-login-step). */
.auth-card label{display:grid;gap:6px;margin:0 0 16px;font-size:13px;font-weight:600;letter-spacing:.01em;color:var(--auth-ink)}
.auth-card label :is(input,select){margin:0}
.auth-card :is(input,select){min-height:48px;padding:12px 14px;font-size:16px;font-weight:400;border:1px solid var(--auth-line);border-radius:12px;background:var(--via-bg);color:var(--auth-ink);transition:border-color .15s,box-shadow .15s}
.auth-card :is(input,select):hover{border-color:var(--auth-muted)}
.auth-card :is(input,select):focus{outline:none;border-color:var(--auth-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--auth-accent) 28%,transparent)}
.auth-card :is(input,select):focus-visible{outline:none}
.auth-card input:-webkit-autofill,.auth-card input:-webkit-autofill:hover,.auth-card input:-webkit-autofill:focus{-webkit-text-fill-color:var(--auth-ink);caret-color:var(--auth-ink);-webkit-box-shadow:0 0 0 1000px var(--via-bg) inset;transition:background-color 9999s}
.auth-card form{margin:20px 0 8px}
.auth-card button.primary{border:0;background:var(--iter-action,var(--auth-accent));color:var(--iter-on-action,#fff);font-weight:700}
.auth-card button.primary:hover:not(:disabled){background:var(--iter-action,var(--auth-accent));filter:brightness(1.08)}
.auth-card #verify input[name=code]{font:600 26px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.35em;text-align:center;padding-left:calc(14px + .35em)}
.auth-card a[data-account-link]{display:block;width:max-content;max-width:100%;margin:10px auto 0;font-size:14px;min-height:32px;padding:6px 0;color:var(--auth-accent);text-underline-offset:4px}
.auth-card a[data-account-link]:first-of-type{margin-top:18px}
.auth-card #social{margin-top:12px}
.auth-card #social::before{content:"or";display:block;text-align:center;font-size:12px;color:var(--auth-muted);margin:0 0 12px}
.auth-card #cancel{display:block;width:auto;min-height:44px;margin:8px auto 0;padding:10px 12px;border:0;background:transparent;color:var(--auth-accent);font-weight:600}
.auth-card #cancel:hover:not(:disabled){background:var(--auth-soft)}
.auth-card #retry-signin{border:0;background:var(--iter-action,var(--auth-accent));color:var(--iter-on-action,#fff);font-weight:700}
.auth-card[data-login-step=mfa] :is(#signin,#social,a[data-account-link],.auth-closure){display:none!important}
.auth-card[data-login-step=retry] :is(#signin,#social,a[data-account-link]){display:none!important}
.auth-card[data-login-step=mfa] #enrollment-qr{display:grid;place-items:center;margin:8px 0 16px}
.auth-card[data-login-step=mfa] #enrollment-help{font-size:14px;line-height:1.6;color:var(--auth-muted)}
.auth-card[data-login-step=mfa] #secret{display:block;margin:0 0 16px;padding:10px 12px;border:1px dashed var(--auth-line);border-radius:10px;font:13px/1.5 ui-monospace,Menlo,Consolas,monospace;word-break:break-all;text-align:center}
@media (prefers-reduced-motion:reduce){.auth-card :is(input,select){transition:none}}
.auth-card a.auth-register-primary{display:flex;align-items:center;justify-content:center;min-height:48px;margin:4px 0 12px;padding:12px 16px;border-radius:12px;background:var(--iter-action,var(--auth-accent));color:var(--iter-on-action,#fff);font-weight:700;text-decoration:none}
.auth-card a.auth-register-primary:hover{filter:brightness(1.07)}
.auth-card a.auth-register-primary:focus-visible{outline:3px solid var(--iter-focus,var(--auth-accent));outline-offset:2px}
.auth-card .auth-continue-note{margin:20px 0 8px;padding-top:16px;border-top:1px solid var(--auth-line);font-size:14px;color:var(--auth-muted)}
#enrollment-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}#enrollment-actions[hidden]{display:none}#authenticator-add{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:12px;background:#3157d5;color:#fff;font-weight:700;text-decoration:none}.authenticator-copy{min-height:44px;padding:10px 14px;border-radius:12px}
/* reCAPTCHA badge (owner decision 2026-10-25): visible on computers; hidden on phones, where it can
   cover buttons. Google allows hiding it only when the sign-in form shows its notice instead. */
.recaptcha-note{display:none;margin:10px 0 0;font-size:12px;line-height:1.4;color:var(--auth-muted,var(--via-muted,#5f6368))}
.recaptcha-note a{color:inherit;text-decoration:underline}
@media (max-width:767px){.grecaptcha-badge{visibility:hidden!important}.recaptcha-note{display:block}}
