.auth-body {
    background: var(--a11y-warm);
    color: var(--a11y-ink);
}

.auth-shell {
    display: grid;
    align-items: safe center;
    justify-items: center;
    min-block-size: calc(100svh - 76px);
    padding: clamp(1rem, 5vw, 3rem) clamp(.75rem, 4vw, 2rem);
}

.auth-card {
    inline-size: min(100%, 32rem);
    padding: clamp(1rem, 5vw, 2.75rem);
    border: 1px solid #ddd5be;
    border-radius: 1.6rem;
    background: var(--a11y-surface);
    box-shadow: 0 12px 44px #3f320d12;
    overflow-wrap: anywhere;
}

[data-a11y-palette] .auth-card { border-color: var(--a11y-edge); }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: .55rem; color: inherit; font-weight: 800; text-decoration: none; }
.auth-brand-mark { flex: 0 0 1.85rem; block-size: 1.85rem; border: .38rem solid var(--a11y-accent); border-radius: 50%; }
.auth-card h1 { margin: .85rem 0 1.35rem; font-size: clamp(1.7rem, 4.5vw, 2.7rem); line-height: 1.13; letter-spacing: -.04em; text-align: center; }
.auth-intro { margin: 0 0 1rem; }
.auth-form, .auth-field { display: grid; grid-template-columns: minmax(0, 1fr); }
.auth-form { gap: .9rem; }
.auth-field { gap: .35rem; }
.auth-field label { font-weight: 700; }
.auth-field input {
    inline-size: 100%;
    min-inline-size: 0;
    min-block-size: 48px;
    padding: .55rem .75rem;
    border: 1px solid var(--a11y-edge);
    border-radius: .7rem;
    background: var(--a11y-surface);
    color: var(--a11y-ink);
    font: inherit;
}
.auth-password { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.auth-password input { flex: 1 0 11rem; }
.auth-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: .3rem .55rem;
    border: 1px solid transparent;
    border-radius: .55rem;
    background: var(--a11y-surface);
    color: var(--a11y-ink);
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    text-align: start;
    cursor: pointer;
}
.auth-toggle[hidden], .auth-toggle [hidden] { display: none; }
.auth-toggle svg, .auth-google svg { flex-shrink: 0; }
.auth-toggle:hover { border-color: var(--a11y-edge); }
.auth-action {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .55rem;
    inline-size: 100%;
    min-block-size: 48px;
    border: 1px solid var(--a11y-edge);
    border-radius: 999px;
    padding: .45rem .85rem;
    background: var(--a11y-surface);
    color: var(--a11y-ink);
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.auth-primary { background: var(--a11y-accent); border-color: var(--a11y-accent); color: var(--a11y-action-ink); }
.auth-action:hover:not(:disabled) { box-shadow: inset 0 0 0 1px currentColor; }
.auth-google:disabled { cursor: default; }
.auth-google:disabled svg { filter: grayscale(1); }
.auth-forgot { justify-self: end; }
.auth-alternative { margin-block-start: .7rem; }
.auth-back { display: inline-block; margin-block-start: 1rem; }
.auth-card .privacy-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1rem; margin: 1.3rem 0 0; padding-block-start: 1rem; border-top: 1px solid var(--a11y-edge); font-size: .85rem; }
.auth-help, .auth-field-error { margin: 0; font-size: .89rem; }
.auth-alternative .auth-help { margin-block-start: .4rem; text-align: center; }
.auth-help { color: var(--a11y-quiet); }
.auth-feedback { margin: 0 0 1rem; padding: .65rem .8rem; border-inline-start: 3px solid var(--a11y-accent); background: var(--a11y-warm); }
.auth-error, .auth-field-error { color: var(--a11y-error); }
.auth-error, .auth-field input[aria-invalid="true"] { border-color: var(--a11y-error); }
