* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 32px 20px; background: var(--cloud); color: var(--ink); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.auth-card { width: 440px; max-width: 100%; padding: 36px; background: var(--paper); border: 1px solid var(--hairline); box-shadow: var(--sh-card); }
.auth-logo { display: inline-block; margin-bottom: 30px; }
.auth-logo img { display: block; width: 136px; height: auto; }
.auth-eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--signal); }
h1 { margin: 0 0 10px; font-size: 27px; line-height: 1.3; letter-spacing: -.04em; }
.auth-desc { margin: 0 0 28px; color: var(--slate); font-size: 14px; line-height: 1.6; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.field { min-height: 46px; font-size: 16px; }
.field[aria-invalid="true"] { border-color: var(--ds-error); }
.password-field { position: relative; }
.password-field input { padding-right: 66px; }
.password-toggle { position: absolute; right: 4px; top: 3px; min-width: 52px; min-height: 40px; border: 0; background: transparent; color: var(--slate); font-size: 12px; cursor: pointer; }
.field-hint { margin: 8px 0 0; color: var(--slate); font-size: 12px; line-height: 1.6; }
.signup-note { margin: 4px 0 18px; color: var(--slate); font-size: 13px; line-height: 1.6; }
.auth-submit, .auth-secondary { display: flex; justify-content: center; align-items: center; width: 100%; min-height: 48px; padding: 12px; font-size: 15px; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid var(--signal); }
.auth-submit { background: var(--signal); color: #fff; }
.auth-submit:hover { background: var(--ds-accent-hi); }
.auth-secondary { background: var(--paper); color: var(--signal); }
button:disabled { opacity: .55; cursor: not-allowed; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--ds-accent-hi); outline-offset: 3px; }
.auth-alert { margin: 0 0 20px; padding: 12px 14px; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-alert.error { background: #fdecee; color: #9d2137; }
.auth-alert.success { background: #e6f7ee; color: #166338; }
.auth-switch { margin: 24px 0 18px; text-align: center; font-size: 13px; color: var(--slate); }
.auth-switch a { margin-left: 4px; color: var(--signal); font-weight: 600; text-underline-offset: 4px; }
.back-home { display: block; text-align: center; color: var(--slate); font-size: 12px; text-decoration: none; }
.confirmation-panel { text-align: center; padding: 8px 0; }
.confirmation-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: #e6f7ee; color: #166338; font-size: 24px; }
.confirmation-panel h2 { margin: 20px 0 12px; font-size: 20px; }
.confirmation-panel p { color: var(--slate); font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.confirmation-panel strong { color: var(--ink); }
.confirmation-panel .auth-secondary { margin-top: 24px; }
.text-button { margin-top: 12px; padding: 10px; border: 0; background: none; color: var(--slate); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.identity-step { margin-bottom: 24px; }
.identity-step > .field-hint:first-child { margin-bottom: 12px; }
#signupCredentials { min-width: 0; padding: 0; margin: 0; border: 0; }
.credentials-legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.field[readonly] { background: var(--cloud); color: var(--slate); }
@media (max-width: 480px) { body { padding: 20px 14px; align-items: flex-start; } .auth-card { padding: 28px 22px; } h1 { font-size: 25px; } }
