.auth-page { min-height: calc(100dvh - 132px); display: grid; place-items: center; padding: 3rem 1.25rem; }
.auth-panel { width: min(100%, 28rem); border-radius: 16px; padding: 2rem; }
.intro { color: var(--muted); margin: 0 0 1.75rem; }
.instruction { margin: 0 0 1.5rem; font-size: .9375rem; }
.field { margin-bottom: 1.5rem; }
label { display: block; margin-bottom: .5rem; font-weight: 600; }
input { width: 100%; min-width: 0; height: 48px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--field); padding: .625rem .875rem; }
input:focus { border-color: var(--focus); }
.hint { color: var(--muted); font-size: .8125rem; margin: .5rem 0 0; overflow-wrap: anywhere; }
.password-field { position: relative; }
.password-field input { padding-right: 4.75rem; }
.password-toggle { position: absolute; top: 2px; right: 2px; height: 44px; min-width: 64px; background: transparent; color: var(--link); border: 0; border-radius: 6px; font-size: .875rem; }
.password-toggle:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.button { display: flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; border-radius: 8px; padding: .65rem 1rem; font-weight: 600; text-align: center; text-decoration: none; transition: background-color 180ms ease-out, opacity 180ms ease-out; }
.primary { border: 0; background: var(--accent); color: var(--on-accent); }
.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }
.secondary { border: 1px solid var(--border); background: transparent; color: var(--text); }
.secondary:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.secondary-action { margin-top: .75rem; }
.footnote { font-size: .8125rem; color: var(--muted); margin: 1.5rem 0 0; }
.alert { padding: .875rem 1rem; border-radius: 8px; margin: 0 0 1.5rem; font-size: .9375rem; }
.error { background: var(--error-bg); color: var(--error-text); }
.notice { background: var(--success-bg); color: var(--success-text); }
.sandbox-badge { color: var(--link); }
.status-label { display: inline-block; color: var(--success-text); background: var(--success-bg); padding: .25rem .625rem; border-radius: 6px; margin-bottom: 1rem; font-size: .8125rem; }
.account-details { margin: 1.5rem 0 2rem; }
.account-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.account-details dt { color: var(--muted); }
.account-details dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .auth-page { padding: 1.5rem 1rem; align-items: start; } .auth-panel { padding: 1.5rem; } h1 { font-size: 1.375rem; } }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }
