/* Shared by the Blazor email/connection screens and Razor password/MFA flow. */
.account-page {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 3.5rem 1.5rem;
    border-top: 4px solid var(--brand);
    background-color: light-dark(#f4f7fa, var(--theme-raised));
    background-image: radial-gradient(ellipse at 50% 0%, light-dark(#e2edf8, var(--theme-raised)) 0, transparent 65%), radial-gradient(light-dark(#d5dfea, var(--theme-raised)) 1px, transparent 1px);
    background-size: auto, 26px 26px;
}

.account-shell { width: min(100%, 30rem); min-width: 0; }
.account-brand { display: block; width: fit-content; max-width: 100%; margin: 0 auto 2rem; border-radius: .25rem; }
.account-brand img { display: block; width: 280px; max-width: 100%; height: auto; }
.account-card { padding: 2.5rem; border: 1px solid light-dark(#d9e2ec, var(--theme-line)); border-radius: 1rem; background: light-dark(#fff, var(--theme-surface)); box-shadow: 0 2px 4px #132a4503, 0 20px 60px -20px #132a4529; }
.account-heading { margin-bottom: 2rem; }
.account-card h1 { margin: 0; font-size: 1.875rem; line-height: 1.2; letter-spacing: -.04em; font-weight: 700; }
.account-heading p { margin: .75rem 0 0; color: light-dark(#5d6f81, var(--theme-muted)); font-size: .9rem; line-height: 1.65; }
.account-card > p, .account-card form > p { color: light-dark(#5d6f81, var(--theme-muted)); font-size: .875rem; line-height: 1.6; }
.account-card form { margin: 0; }
.account-card .field { display: grid; gap: .55rem; margin: 0 0 1.25rem; }
.account-card .field label { margin: 0; color: light-dark(#293f55, var(--theme-ink)); font-size: .8125rem; font-weight: 650; }
.account-card .field input { width: 100%; min-width: 0; min-height: 3.25rem; padding: .85rem 1rem; border: 1px solid light-dark(#b8c9da, var(--theme-line)); border-radius: .5rem; background: light-dark(#fff, var(--theme-surface)); color: var(--ink); font-size: 1rem; line-height: 1.4; box-shadow: 0 1px 2px #132a4505; }
.account-card .field input::placeholder { color: light-dark(#75879a, var(--theme-muted)); opacity: 1; }
.account-card .field input:hover { border-color: light-dark(#829bb4, var(--theme-line)); }
.account-card .field input:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; border-color: var(--accent); }
.account-card .account-submit { display: flex; width: 100%; min-height: 3.25rem; justify-content: center; align-items: center; gap: .75rem; margin: .5rem 0 0; padding: .8rem 1rem; border-radius: .5rem; font-size: .9rem; font-weight: 650; }
.account-submit svg { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.account-card a:not(.button):not(.account-connection) { color: light-dark(var(--brand), var(--theme-accent)); font-weight: 600; text-decoration: none; text-underline-offset: .2em; }
.account-card a:not(.button):not(.account-connection):hover { color: var(--accent); text-decoration: underline; }
.account-shell a:focus-visible, .account-shell button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.account-support { margin: 1.5rem 0 0; padding: 0 .5rem; text-align: center; font-size: .75rem; line-height: 1.7; color: light-dark(#617489, var(--theme-muted)); }
.account-notice { margin: 0 0 1.5rem; font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.account-notice strong { display: block; font-weight: 650; }
.account-notice p { margin: .2rem 0 0; color: light-dark(#5d6f81, var(--theme-muted)); }
.account-notice svg { width: 1.125rem; height: 1.125rem; margin-top: .1rem; }
.account-notice-info { color: light-dark(#5d6f81, var(--theme-muted)); }
.account-notice-error { display: grid; grid-template-columns: 1.125rem minmax(0, 1fr); gap: .65rem; color: light-dark(#963f37, var(--theme-danger)); }
.account-preview { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .75rem; }
.account-preview > span { color: light-dark(#6b7c8d, var(--theme-muted)); }
.account-preview a { padding: .4rem 0; }
.account-identity { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; margin: 0 0 1.5rem; padding: 1rem; background: light-dark(#f5f8fb, var(--theme-raised)); border: 1px solid light-dark(#e0e7ee, var(--theme-line)); border-radius: .5rem; }
.account-identity span { color: light-dark(#617489, var(--theme-muted)); font-size: .75rem; }
.account-identity strong { overflow-wrap: anywhere; color: light-dark(#293f55, var(--theme-ink)); font-size: .875rem; }
.account-identity a { justify-self: start; padding: .4rem 0; font-size: .75rem; }
.account-back { display: flex; justify-content: center; align-items: center; gap: .5rem; width: fit-content; min-height: 2.75rem; margin: 1.25rem auto 0; font-size: .8125rem; }
.account-recovery { display: flex; align-items: flex-start; gap: .65rem; margin: 1rem 0; color: light-dark(#344b62, var(--theme-ink)); font-size: .8125rem; line-height: 1.5; cursor: pointer; }
.account-recovery input { flex: 0 0 auto; margin-top: .1rem; }
.account-card form > .form-help { margin: -.25rem 0 1.5rem; color: light-dark(#617489, var(--theme-muted)); font-size: .75rem; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 1.5rem 0; user-select: all; }
.recovery-codes code { padding: .6rem .25rem; border: 1px solid var(--line); border-radius: .3rem; background: light-dark(#f5f8fb, var(--theme-raised)); font-size: .8rem; text-align: center; overflow-wrap: anywhere; }
.account-connection { display: flex; gap: 1rem; align-items: center; min-height: 4rem; padding: 1rem; border: 1px solid light-dark(#cbd8e5, var(--theme-line)); border-radius: .6rem; color: light-dark(var(--brand), var(--theme-accent)); text-decoration: none; font-size: .875rem; font-weight: 600; transition: border-color .15s, background-color .15s; }
.account-connection:hover { background: light-dark(#f3f7fc, var(--theme-raised)); border-color: light-dark(#829bb4, var(--theme-line)); }
.account-connection span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.account-connection svg { width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
.account-connection .account-connection-icon { width: 1.5rem; height: 1.5rem; color: light-dark(#4d7194, var(--theme-muted)); }

@media (max-width: 520px) {
    .account-page { align-items: start; padding: 2rem 1rem; }
    .account-brand { margin-bottom: 1.5rem; }
    .account-brand img { width: 240px; }
    .account-card { padding: 1.75rem 1.5rem; border-radius: .875rem; }
    .account-card h1 { font-size: 1.65rem; }
    .account-heading { margin-bottom: 1.75rem; }
    .account-support { font-size: .6875rem; }
}

@media (prefers-reduced-motion: reduce) { .account-connection { transition: none; } }
