.auth-form{display:flex;flex-direction:column;gap:17px;margin-top:20px}
.auth-field{display:flex;flex-direction:column;gap:7px;min-width:0}
.auth-field label{color:var(--text);font-size:13px;font-weight:600}
.auth-input-wrap{position:relative}
.auth-field input{display:block;box-sizing:border-box;width:100%;min-height:46px;border:1px solid var(--border);border-radius:10px;padding:11px 13px;color:var(--text);background:var(--surface);font:inherit;font-size:14px;transition:border-color .15s,box-shadow .15s}
.auth-field input[type=password],.auth-input-wrap:has(.auth-reveal) input{padding-right:46px}
.auth-field input:focus{outline:none;border-color:var(--accent);box-shadow:none}
.auth-field input::placeholder{color:var(--subtle);opacity:1}
.auth-field input[aria-invalid=true]:focus{border-color:#e98a98}
@media(forced-colors:active){.auth-field input:focus{outline:2px solid Highlight;outline-offset:2px}}
.auth-field input[aria-invalid=true]{border-color:#d66c7b}
.auth-field small{font-size:12px;line-height:1.5;color:var(--muted)}
.auth-field .auth-field-error{color:#e98a98}
.auth-reveal{position:absolute;right:3px;top:3px;display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:8px;background:transparent;color:var(--muted);cursor:pointer}
.auth-reveal[hidden]{display:none}
.auth-reveal:hover{color:var(--text);background:color-mix(in srgb,var(--accent) 10%,transparent)}
.auth-reveal svg{width:19px;height:19px}
.auth-submit{display:block;width:100%;min-height:46px;padding:12px 15px;border:1px solid var(--accent);border-radius:10px;color:#fff;background:var(--accent);font:inherit;font-size:14px;font-weight:650;cursor:pointer;transition:background .15s}
.auth-submit:hover{background:#2563eb}
body [data-locale-switch] button:is(.bg-accent,.bg-transparent):hover,
body.theme-light [data-locale-switch] button:is(.bg-accent,.bg-transparent):hover{background:#2563eb;border-color:#2563eb;color:#fff}
.auth-submit:disabled{opacity:.65;cursor:wait}
.auth-form a,.auth-switch a,.auth-terms a,.auth-text-button{color:var(--accent);text-decoration:none}
.auth-form a:hover,.auth-switch a:hover,.auth-terms a:hover,.auth-text-button:hover{text-decoration:underline}
.auth-forgot{align-self:flex-end;margin-top:-5px;font-size:12px}
.auth-switch{margin:20px 0 0;text-align:center;font-size:13px;line-height:1.6;color:var(--muted)}
.auth-intro{margin:0 0 16px;font-size:13px;line-height:1.6;color:var(--muted)}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--subtle);font-size:12px}
.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:var(--border)}
.auth-notice,.auth-error{margin-bottom:17px;padding:12px 14px;border:1px solid;border-radius:10px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.auth-notice{color:var(--text);border-color:color-mix(in srgb,var(--accent) 35%,var(--border));background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
.auth-error{color:#e98a98;border-color:#773d49;background:color-mix(in srgb,#d66c7b 7%,var(--surface))}
.auth-terms{display:flex;align-items:flex-start;gap:10px;color:var(--muted);font-size:12px;line-height:1.6}
.auth-terms input{appearance:none;-webkit-appearance:none;display:grid;place-content:center;margin:3px 0 0;width:16px;height:16px;flex:0 0 16px;border:1px solid color-mix(in srgb,var(--accent) 35%,var(--border));border-radius:4px;background:var(--surface);cursor:pointer;transition:background .15s,border-color .15s}
.auth-terms input:checked{border-color:var(--accent);background:var(--accent)}
.auth-terms input:checked::after{content:"";width:8px;height:5px;margin-top:-2px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg)}
.auth-terms input:hover{border-color:var(--accent)}
.auth-terms input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(forced-colors:active){.auth-terms input{appearance:auto;-webkit-appearance:auto}.auth-terms input:checked::after{content:none}}
.auth-email{display:block;margin-top:8px;color:var(--text);overflow-wrap:anywhere}
.auth-text-button{padding:0;border:0;background:transparent;font:inherit;cursor:pointer}
.auth-submit:focus-visible,.auth-reveal:focus-visible,.auth-text-button:focus-visible{outline:2px solid var(--accent-hover);outline-offset:3px}
body.theme-light .auth-error,body.theme-light .auth-field .auth-field-error{color:#a22d42}
@media(max-width:480px){body{padding:24px 16px!important}.auth-card{padding:24px 20px!important}.auth-field input{font-size:16px}.auth-field input::placeholder{font-size:14px}.auth-form{gap:16px}}
.auth-card h1{font-weight:700}
.auth-card h1:has(+ .auth-welcome-copy){margin-bottom:8px!important}
.auth-card>a[href*="/auth/google/redirect"]{color:#1a1a1a;font-weight:600}
.auth-welcome-copy{margin-bottom:25px;font-size:14px;line-height:1.65}
.auth-benefits{display:flex;flex-direction:column;gap:21px;padding:0;margin:0;list-style:none}
.auth-benefits li{display:flex;align-items:flex-start;gap:13px;min-width:0}
.auth-benefits li>div{position:relative;top:-1px}
.auth-benefit-symbol{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border:1px solid color-mix(in srgb,var(--accent) 18%,var(--border));border-radius:11px;background:color-mix(in srgb,var(--accent) 8%,var(--surface))}
/* Safari 15: var() lets unsupported color functions survive parsing, so a
   preceding declaration alone is not a reliable fallback. Keep these guarded. */
@supports not (color:color-mix(in srgb,red,blue)){
 .auth-benefit-symbol{border:1px solid #293953;background:#111727}
 .auth-notice{border-color:#33496d;background:#111727}
 .auth-error{background:#1a1019}
 .auth-terms input{border:1px solid #33496d}
 .auth-terms input:checked{border-color:var(--accent)}
 .auth-terms input:hover{border-color:var(--accent)}
 .auth-reveal:hover{background:rgba(72,127,245,.1)}
 body.theme-light .auth-benefit-symbol{border-color:#cbd8ed;background:#f0f5fe}
 body.theme-light .auth-notice{border-color:#aebfdf;background:#f0f5fe}
 body.theme-light .auth-error{background:#fcf1f4}
 body.theme-light .auth-terms input{border-color:#aebfdf}
 body.theme-light .auth-terms input:checked{border-color:var(--accent)}
}
.auth-benefit-symbol .signin-benefit-icon{width:20px;height:20px;color:var(--accent-hover)}
.auth-benefits h2{margin:0;font-size:13px;font-weight:600;line-height:1.5;color:var(--text)}
.auth-benefits p{margin:4px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.auth-welcome-actions{margin-top:27px;padding-top:23px;border-top:1px solid var(--border)}
.auth-action-link{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none!important;text-align:center}
.auth-action-link svg{width:18px;height:18px;flex:0 0 18px}
.auth-welcome-actions .auth-switch{margin-top:15px}
.auth-switch a{display:inline-block;padding:5px 2px;margin:-5px -2px}
.auth-back{display:inline-flex;align-items:center;gap:7px;margin:0 0 18px;padding:5px 0;min-height:30px;font-size:12px;line-height:1.5;color:var(--muted);text-decoration:none}
.auth-back:hover{color:var(--text)}
.auth-back:focus-visible,.auth-switch a:focus-visible{outline:2px solid var(--accent);outline-offset:4px;border-radius:3px}
body.theme-light .auth-benefit-symbol .signin-benefit-icon{color:var(--accent)}
