.auth-page { min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.auth-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 40px; border-bottom: 1px solid var(--line); }
.auth-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 24px; font-weight: 750; }
.auth-brand > svg { width: 30px; height: 30px; color: var(--primary); }
.auth-brand > span { color: var(--primary); margin-left: -5px; }
.auth-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.auth-back svg { width: 16px; height: 16px; }
.auth-main { width: min(100% - 40px, 440px); margin: 48px auto; flex: 1; }
.auth-symbol { color: var(--primary); margin-bottom: 24px; }
.auth-symbol svg { width: 36px; height: 36px; }
.auth-main h1 { font-size: 28px; line-height: 1.25; font-weight: 700; margin: 0 0 12px; overflow-wrap: anywhere; }
.auth-main p { font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.auth-main .auth-intro { color: var(--muted); margin-bottom: 28px; }
.auth-main a:not(.button) { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.auth-main form { margin-top: 24px; }
.auth-main label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.auth-main input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { width: 100%; min-height: 46px; }
.auth-main .helptext { display: block; margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.auth-main .helptext ul { padding-left: 18px; margin: 6px 0; }
.auth-main .errorlist { list-style: none; padding: 0; margin: 0 0 12px; font-size: 13px; color: var(--red); line-height: 1.5; }
.auth-main input[aria-invalid="true"] { border-color: var(--red); }
.auth-main p:has(> input[type="checkbox"]) { display: flex; align-items: center; gap: 10px; }
.auth-main p:has(> input[type="checkbox"]) label { margin: 0; font-weight: 400; }
.auth-main p > input[type="checkbox"] { order: -1; }
.auth-main form > ul:not(.errorlist) { font-size: 12px; line-height: 1.5; color: var(--muted); padding-left: 18px; margin: 8px 0 20px; }
.auth-main button { min-height: 44px; }
.auth-form > button[type="submit"] { width: 100%; justify-content: space-between; margin-top: 4px; }
.auth-main .auth-switch { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.auth-main .auth-messages .notice { padding: 12px 16px; overflow-wrap: anywhere; }
.auth-password { display: block; position: relative; }
.auth-password input { padding-right: 48px; }
.auth-password button { position: absolute; right: 3px; top: 3px; width: 40px; height: 40px; min-height: 40px; padding: 10px; background: transparent; border: 0; color: var(--muted); }
.auth-password button svg { width: 20px; height: 20px; }
.auth-footer { padding: 20px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 12px; }
.account-section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.account-section h2 { font-size: 18px; margin-bottom: 20px; }
.account-section p { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.account-details { max-width: 680px; margin: 0 0 24px; }
.account-details > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 12px 0; }
.account-details dt { font-size: 14px; color: var(--muted); }
.account-details dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.account-details small { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 560px) {
    .auth-header { padding: 20px; }
    .auth-main { margin: 32px auto; }
    .auth-main h1 { font-size: 25px; }
    .account-details > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}
