.auth-body {
    background:
        radial-gradient(circle at 12% 12%, rgba(37, 99, 235, .11), transparent 28rem),
        radial-gradient(circle at 88% 86%, rgba(14, 165, 233, .08), transparent 25rem),
        #f7f9fc;
}

.auth-page { min-height: calc(100vh - var(--topbar-height)); padding-block: clamp(28px, 5vw, 64px) 80px; }
.auth-shell { display: grid; grid-template-columns: minmax(300px, .82fr) minmax(420px, 1fr); width: min(100%, 980px); min-height: 650px; margin-inline: auto; overflow: hidden; border: 1px solid rgba(148, 163, 184, .28); border-radius: 28px; background: #fff; box-shadow: 0 28px 80px rgba(15, 23, 42, .12); }
.auth-shell-signup { min-height: 790px; }

.auth-story { position: relative; isolation: isolate; display: flex; flex-direction: column; padding: clamp(32px, 5vw, 54px); overflow: hidden; background: linear-gradient(145deg, #172554 0%, #1d4ed8 58%, #0284c7 120%); color: #fff; }
.auth-story::before, .auth-story::after { position: absolute; z-index: -1; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; content: ""; }
.auth-story::before { width: 330px; height: 330px; inset: -150px -115px auto auto; }
.auth-story::after { width: 410px; height: 410px; inset: auto auto -220px -190px; background: rgba(255,255,255,.035); }
.auth-story-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 12px; color: #fff; font-size: 1.05rem; }
.auth-story-copy { margin-block: auto; padding-block: 58px 36px; }
.auth-eyebrow, .auth-kicker { color: #93c5fd; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.auth-story h2 { max-width: 390px; margin: 13px 0 15px; font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.55; }
.auth-story-copy > p { max-width: 390px; margin: 0; color: rgba(255,255,255,.75); font-size: .91rem; line-height: 2; }
.auth-benefits { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; color: rgba(255,255,255,.88); font-size: .84rem; }
.auth-benefits li { display: flex; align-items: center; gap: 10px; }
.auth-benefits li span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: rgba(255,255,255,.14); color: #bfdbfe; font-weight: 900; }
.auth-security-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.08); }
.auth-security-note > span { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: rgba(255,255,255,.12); }
.auth-security-note p { margin: 0; color: rgba(255,255,255,.72); font-size: .78rem; line-height: 1.75; }
.auth-security-note strong { display: block; color: #fff; font-size: .85rem; }

.auth-brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 38px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(15,23,42,.16); }
.auth-brand-mark span { width: 0; height: 0; margin-inline-start: 3px; border-block: 7px solid transparent; border-inline-start: 12px solid #2563eb; }
.auth-mobile-mark { display: none; margin-inline: auto; background: var(--brand-color); }
.auth-mobile-mark span { border-inline-start-color: #fff; }

.auth-card { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(34px, 6vw, 66px); background: #fff; }
.auth-header { margin-block-end: 30px; }
.auth-header .auth-kicker { margin: 0 0 8px; color: var(--brand-color); }
.auth-header h1 { margin: 0; color: #0f172a; font-size: clamp(1.65rem, 3vw, 2.15rem); line-height: 1.45; }
.auth-header > p:last-child { margin: 10px 0 0; color: #64748b; font-size: .88rem; line-height: 1.8; }
.auth-form { display: grid; gap: 19px; }
.auth-field { min-width: 0; }
.auth-field label { display: block; margin-block-end: 8px; color: #1e293b; font-size: .84rem; font-weight: 750; }
.auth-field-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-block-end: 8px; }
.auth-field-heading label { margin: 0; }
.auth-field-heading a { color: #2563eb; font-size: .72rem; font-weight: 750; }
.auth-field-heading a:hover { text-decoration: underline; }
.auth-input-wrap { position: relative; }
.auth-field input, .auth-field select, .auth-field textarea { display: block; width: 100%; min-height: 52px; padding: 11px 15px; border: 1px solid #d7dee8; border-radius: 13px; outline: 0; background: #fbfcfe; color: #0f172a; font-size: .9rem; text-align: start; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.auth-field input::placeholder { color: #94a3b8; }
.auth-field input[type="password"], .auth-field input[type="email"] { direction: ltr; text-align: left; }
.auth-field input:hover { border-color: #aeb9c8; background: #fff; }
.auth-field input:focus { border-color: #2563eb; background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,.11); }
.auth-field.has-error input { border-color: #ef4444; background: #fffafa; }
.auth-field.has-error input:focus { box-shadow: 0 0 0 4px rgba(239,68,68,.1); }
.has-password-toggle input { padding-right: 48px; }
.password-toggle { position: absolute; inset-block: 7px; right: 7px; left: auto; display: grid; place-items: center; width: 38px; border: 0; border-radius: 9px; background: transparent; color: #64748b; cursor: pointer; }
.password-toggle:hover { background: #eef2f7; color: #1e40af; }
.password-toggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.auth-field-error { margin: 7px 0 0; color: #b91c1c; font-size: .77rem; line-height: 1.65; }
.auth-help-text { margin: 7px 0 0; color: #64748b; font-size: .74rem; line-height: 1.7; }
.auth-help-text p { margin: 0; }
.auth-help-text ul { margin: 7px 0 0; padding-inline-start: 20px; }
.auth-help-details { margin-block-start: 8px; overflow: hidden; border: 1px solid #e2e8f0; border-radius: 11px; background: #f8fafc; }
.auth-help-details summary { display: flex; justify-content: space-between; padding: 10px 12px; color: #64748b; font-size: .76rem; font-weight: 700; cursor: pointer; list-style: none; }
.auth-help-details summary::-webkit-details-marker { display: none; }
.auth-help-details summary::after { color: #2563eb; content: "+"; }
.auth-help-details[open] summary::after { content: "−"; }
.auth-help-details .auth-help-text { margin: 0; padding: 10px 13px 12px; border-block-start: 1px solid #e2e8f0; background: #fff; }
.auth-error-summary { margin-block-end: 22px; padding: 13px 15px; border: 1px solid #fecaca; border-radius: 13px; background: #fef2f2; color: #991b1b; font-size: .8rem; line-height: 1.7; }
.auth-error-summary strong { display: block; margin-block-end: 3px; }
.auth-error-summary p { margin: 0; }
.auth-submit-button { display: flex; align-items: center; justify-content: center; gap: 11px; width: 100%; min-height: 52px; margin-block-start: 3px; padding: 11px 20px; border: 0; border-radius: 13px; background: linear-gradient(100deg, #2563eb, #1d4ed8); color: #fff; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 10px 22px rgba(37,99,235,.2); transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
.auth-submit-button:hover { filter: brightness(1.06); box-shadow: 0 13px 28px rgba(37,99,235,.27); transform: translateY(-1px); }
.auth-submit-button:active { transform: translateY(0); }
.auth-submit-button:disabled { cursor: not-allowed; filter: grayscale(.3); opacity: .58; box-shadow: none; transform: none; }
.auth-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 7px; margin-block-start: 27px; padding-block-start: 22px; border-block-start: 1px solid #edf0f4; text-align: center; }
.auth-footer p { margin: 0; color: #64748b; font-size: .82rem; }
.auth-footer a, .auth-link-button { border: 0; background: transparent; color: #2563eb; font: inherit; font-weight: 800; cursor: pointer; }
.auth-footer a:hover, .auth-link-button:hover { text-decoration: underline; }

.verification-card { text-align: center; }
.verification-icon { position: relative; display: grid; place-items: center; width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 20px; background: #eff6ff; color: #2563eb; font-size: 1.7rem; }
.verification-icon i { position: absolute; inset: auto auto -4px -4px; display: grid; place-items: center; width: 25px; height: 25px; border: 3px solid #fff; border-radius: 50%; background: #10b981; color: #fff; font-size: .7rem; font-style: normal; }
.auth-email { display: inline-block; direction: ltr; unicode-bidi: isolate; color: #334155; font-weight: 750; }
.verification-timer { display: flex; align-items: center; justify-content: center; gap: 11px; margin-block: -5px 24px; padding: 11px 14px; border: 1px solid #bfdbfe; border-radius: 13px; background: #eff6ff; color: #1e40af; }
.verification-timer .timer-ring { font-size: 1.35rem; }
.verification-timer p { display: flex; align-items: baseline; gap: 8px; margin: 0; font-size: .78rem; }
.verification-timer strong { min-width: 42px; font-size: .98rem; }
.verification-timer.is-warning { border-color: #fed7aa; background: #fff7ed; color: #9a3412; }
.verification-timer.is-expired { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.verification-form { text-align: right; }
.verification-input input { direction: ltr; text-align: center; font-size: 1.45rem; font-weight: 800; letter-spacing: .5em; font-variant-numeric: tabular-nums; }
.verification-footer { flex-direction: column; }
.verification-footer form { margin: 0; }
.auth-cancel-link { margin-block-start: 7px; color: #64748b !important; font-size: .76rem; font-weight: 650 !important; }
.auth-shell-compact { min-height: 590px; }
.auth-standalone-card { width: min(100%, 540px); min-height: 500px; margin-inline: auto; border: 1px solid rgba(148,163,184,.28); border-radius: 26px; box-shadow: 0 24px 70px rgba(15,23,42,.11); }
.auth-mobile-mark.always-visible { display: inline-flex; }
.auth-result-card { align-items: center; text-align: center; }
.auth-result-card h1 { margin: 12px 0 10px; color: #0f172a; font-size: clamp(1.55rem, 3vw, 2rem); }
.auth-result-card > p:not(.auth-kicker) { max-width: 420px; margin: 0; color: #64748b; font-size: .87rem; line-height: 1.9; }
.auth-result-icon { display: grid; place-items: center; width: 68px; height: 68px; margin-block-end: 9px; border-radius: 20px; background: #eff6ff; color: #2563eb; font-size: 1.65rem; font-weight: 850; }
.auth-result-icon.is-success { background: #ecfdf5; color: #059669; }
.auth-result-icon.is-error { background: #fef2f2; color: #dc2626; }
.auth-primary-link { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-block-start: 25px; padding: 10px 24px; border-radius: 13px; background: #2563eb; color: #fff; font-weight: 800; box-shadow: 0 10px 22px rgba(37,99,235,.18); }
.auth-primary-link:hover { background: #1d4ed8; }

@media (max-width: 800px) {
    .auth-page { padding-block: 24px 60px; }
    .auth-shell { grid-template-columns: 1fr; width: min(100%, 550px); min-height: 0; }
    .auth-story { display: none; }
    .auth-card { padding: clamp(28px, 8vw, 52px); }
    .auth-mobile-mark { display: inline-flex; margin-block-end: 20px; }
    .auth-header { text-align: center; }
}

@media (max-width: 560px) {
    .auth-body { background: #fff; }
    .auth-page { width: 100%; padding: 0; }
    .auth-shell { min-height: calc(100vh - var(--topbar-height)); border: 0; border-radius: 0; box-shadow: none; }
    .auth-card { justify-content: flex-start; padding: 34px 21px 50px; }
    .auth-header { margin-block-end: 25px; }
    .auth-field input { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-field input, .auth-submit-button { transition: none; }
}

/* Minimal account surface aligned with the 99academy homepage */
.auth-body {
    background:
        radial-gradient(circle at 85% 8%, rgba(59, 130, 246, .08), transparent 24rem),
        radial-gradient(circle at 8% 72%, rgba(124, 58, 237, .045), transparent 22rem),
        #f7f9fc;
}

.auth-page {
    display: grid;
    place-items: start center;
    padding-block: 44px 80px;
}

.auth-shell,
.auth-shell-signup,
.auth-shell-verify,
.auth-shell-compact {
    display: block;
    width: min(100%, 510px);
    min-height: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.auth-shell-signup { width: min(100%, 540px); }
.auth-story { display: none; }

.auth-card,
.auth-standalone-card {
    display: block;
    width: 100%;
    min-height: 0;
    padding: clamp(30px, 5vw, 42px);
    border: 1px solid #dfe6f1;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(28, 55, 95, .07);
}

.auth-mobile-mark { display: none !important; }
.auth-header { margin-block-end: 27px; text-align: start; }
.auth-header .auth-kicker {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #edf3ff;
    font-size: .72rem;
}
.auth-header h1 { font-size: clamp(1.5rem, 3vw, 1.85rem); letter-spacing: -.025em; }
.auth-header > p:last-child { max-width: 430px; margin-block-start: 8px; font-size: .82rem; }
.auth-form { gap: 17px; }
.auth-field input, .auth-field select, .auth-field textarea { min-height: 48px; border-radius: 12px; background: #f9fbfe; }
.auth-submit-button { min-height: 48px; border-radius: 12px; box-shadow: 0 8px 18px rgba(37, 99, 235, .16); }
.auth-footer { margin-block-start: 24px; padding-block-start: 19px; }

.verification-card { text-align: start; }
.verification-card .auth-header { text-align: center; }
.verification-icon { width: 58px; height: 58px; margin-block-end: 17px; border-radius: 17px; font-size: 1.4rem; }
.verification-timer { margin-block: -3px 21px; padding-block: 9px; }
.auth-result-card { display: flex; min-height: 390px; }
.auth-result-icon { width: 58px; height: 58px; border-radius: 17px; font-size: 1.4rem; }

@media (max-width: 560px) {
    .auth-page { padding: 0; }
    .auth-shell,
    .auth-shell-signup,
    .auth-shell-verify,
    .auth-shell-compact { width: 100%; }
    .auth-card,
    .auth-standalone-card {
        min-height: calc(100vh - var(--topbar-height));
        padding: 32px 20px 48px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    .auth-result-card { justify-content: center; }
}
