/*
 * auth.css — two-pane Account pages (login, password reset, change password)
 * Layout: Views/Shared/Layout/_AuthLayout.cshtml   Script: wwwroot/js/auth.js
 * Colours come from the theme.css tokens so light/dark mode needs no extra rules,
 * except the few auth-only tokens defined below.
 */

:root {
    --auth-primary: #1463d8;
    --auth-primary-hover: #0f52b6;
    --auth-primary-soft: rgba(20, 99, 216, 0.10);
    --auth-ring: rgba(20, 99, 216, 0.28);
    --auth-success: #14915b;
    --auth-success-soft: rgba(20, 145, 91, 0.10);
    --auth-danger: #d33a3a;
    --auth-danger-soft: rgba(211, 58, 58, 0.09);
    --auth-info-soft: rgba(20, 99, 216, 0.08);
    --auth-radius: 12px;
    --auth-main-bg: var(--bg-surface, #fff);
}

html[data-theme="dark"] {
    --auth-primary: #4c94ff;
    --auth-primary-hover: #6aa7ff;
    --auth-primary-soft: rgba(76, 148, 255, 0.14);
    --auth-ring: rgba(76, 148, 255, 0.35);
    --auth-success: #3ccf8e;
    --auth-success-soft: rgba(60, 207, 142, 0.13);
    --auth-danger: #ff6b6b;
    --auth-danger-soft: rgba(255, 107, 107, 0.12);
    --auth-info-soft: rgba(76, 148, 255, 0.10);
    --auth-main-bg: var(--bg-body, #0f1521);
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body.auth-body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body, #475569);
    background: var(--auth-main-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--auth-primary); text-decoration: none; }
a:hover { color: var(--auth-primary-hover); text-decoration: underline; }

/* ═══ Shell ═════════════════════════════════════════════════════════════ */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(400px, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ═══ Left pane ═════════════════════════════════════════════════════════ */
.auth-visual {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #0d1b2e;
    color: #fff;
}

.auth-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s ease-out;
}
.auth-slide.is-active { opacity: 1; transform: scale(1); }

.auth-visual-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(6, 16, 31, 0.55) 0%, rgba(6, 16, 31, 0.15) 35%, rgba(6, 16, 31, 0.85) 100%),
        linear-gradient(90deg, rgba(10, 40, 90, 0.45), rgba(10, 40, 90, 0) 70%);
}

.auth-visual-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 56px 44px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    color: var(--text-primary, #1f2a3c);
}
.auth-brand:hover { text-decoration: none; color: inherit; }
.auth-brand img { width: 36px; height: 36px; border-radius: 9px; object-fit: cover; background: #fff; }
.auth-brand-light, .auth-brand-light:hover { color: #fff; }

.auth-visual-copy { max-width: 520px; }
.auth-eyebrow {
    margin: 0 0 12px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.auth-visual-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    line-height: 1.18;
    font-weight: 700;
    color: #fff;
}
.auth-slogan { margin: 0 0 24px; font-size: 1.05rem; color: rgba(255, 255, 255, 0.85); }

.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-points li { display: flex; align-items: center; gap: 12px; color: rgba(255, 255, 255, 0.9); font-size: 0.95rem; }
.auth-points i {
    width: 32px; height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(4px);
    font-size: 0.85rem;
}

.auth-dots { display: flex; gap: 8px; }
.auth-dots span {
    width: 8px; height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.4);
    transition: width 0.4s ease, background 0.4s ease;
}
.auth-dots span.is-active { width: 26px; background: #fff; }

/* ═══ Right pane ════════════════════════════════════════════════════════ */
.auth-main {
    min-width: 0;
    overflow-x: hidden;
    overflow-x: clip;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--auth-main-bg);
}

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 32px;
}
.auth-brand-mobile { visibility: hidden; }
.auth-topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.auth-link-muted { color: var(--text-secondary, #64748b); font-size: 0.88rem; }
.auth-link-muted:hover { color: var(--text-primary, #1f2a3c); text-decoration: none; }

.auth-icon-btn {
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e6ebf2);
    background: var(--bg-surface, #fff);
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.auth-icon-btn:hover { background: var(--bg-hover, #eef2f7); color: var(--text-primary, #1f2a3c); }

.auth-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px 32px;
}

.auth-card { width: 100%; max-width: 420px; min-width: 0; }

.auth-footer {
    padding: 18px 32px 24px;
    font-size: 0.8rem;
    color: var(--text-muted, #98a2b3);
    text-align: center;
}

/* ═══ Panels ════════════════════════════════════════════════════════════ */
.auth-panel[hidden] { display: none !important; }
.auth-panel.is-entering { animation: auth-in 0.32s ease both; }
@keyframes auth-in {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: none; }
}
.auth-panel-center { text-align: center; }

.auth-head { margin-bottom: 24px; }
.auth-head h2 {
    margin: 0 0 6px;
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary, #1f2a3c);
    letter-spacing: -0.01em;
}
.auth-head p { margin: 0; color: var(--text-secondary, #64748b); }
.auth-head strong { color: var(--text-primary, #1f2a3c); font-weight: 600; word-break: break-all; }

/* Reset progress */
.auth-steps {
    display: none;
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    gap: 6px;
    counter-reset: none;
}
#auth-app.show-steps .auth-steps,
#signup-app.show-steps .auth-steps { display: flex; }
.auth-steps li {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 3px solid var(--border-color, #e6ebf2);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted, #98a2b3);
    transition: border-color 0.3s, color 0.3s;
}
.auth-steps li span {
    width: 20px; height: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 0.7rem;
    background: var(--bg-hover, #eef2f7);
    color: var(--text-secondary, #64748b);
}
.auth-steps li.is-current, .auth-steps li.is-done { border-color: var(--auth-primary); color: var(--text-primary, #1f2a3c); }
.auth-steps li.is-current span, .auth-steps li.is-done span { background: var(--auth-primary); color: #fff; }
.auth-steps li.is-done span { font-size: 0; }
.auth-steps li.is-done span::before { content: "\f00c"; font-family: "Font Awesome 5 Free"; font-weight: 900; font-size: 0.6rem; }

/* ═══ Form controls ═════════════════════════════════════════════════════ */
.auth-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.auth-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }

.auth-field label, .auth-label-row label {
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-primary, #1f2a3c);
}
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.auth-label-row a { font-size: 0.84rem; font-weight: 500; }

.auth-input {
    position: relative;
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-strong, #cfd8e3);
    border-radius: 10px;
    background: var(--bg-input, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input:focus-within { border-color: var(--auth-primary); box-shadow: 0 0 0 4px var(--auth-ring); }
.auth-input.is-invalid { border-color: var(--auth-danger); }
.auth-input.is-invalid:focus-within { box-shadow: 0 0 0 4px var(--auth-danger-soft); }

.auth-input > i {
    position: absolute;
    left: 14px;
    color: var(--text-muted, #98a2b3);
    font-size: 0.9rem;
    pointer-events: none;
}
.auth-input input {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 14px 0 42px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary, #1f2a3c);
    font: inherit;
    font-size: 0.97rem;
    border-radius: 10px;
}
.auth-input input:disabled, .auth-input input[readonly] { color: var(--text-secondary, #64748b); }
.auth-input input:-webkit-autofill {
    -webkit-text-fill-color: var(--text-primary, #1f2a3c);
    box-shadow: 0 0 0 1000px var(--bg-input, #fff) inset !important;
    caret-color: var(--text-primary, #1f2a3c);
}

.auth-reveal {
    flex: none;
    width: 46px; height: 46px;
    border: 0;
    background: transparent;
    color: var(--text-muted, #98a2b3);
    cursor: pointer;
    border-radius: 0 10px 10px 0;
}
.auth-reveal:hover { color: var(--text-primary, #1f2a3c); }

.auth-error { min-height: 0; font-size: 0.8rem; color: var(--auth-danger); }
.auth-error:empty { display: none; }
.auth-hint { font-size: 0.8rem; color: #b7791f; }
.auth-hint[hidden] { display: none; }

.auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    user-select: none;
}
.auth-check input { width: 18px; height: 18px; accent-color: var(--auth-primary); margin: 0; }

/* Button */
.auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: var(--auth-primary);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 6px 16px -6px var(--auth-ring);
}
.auth-btn:hover { background: var(--auth-primary-hover); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:focus-visible { outline: 0; box-shadow: 0 0 0 4px var(--auth-ring); }
.auth-btn:disabled { opacity: 0.7; cursor: not-allowed; }
.auth-spinner {
    display: none;
    width: 20px; height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
}
.auth-btn.is-busy .auth-btn-label { visibility: hidden; }
.auth-btn.is-busy .auth-spinner { display: block; position: absolute; }
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-linkbtn {
    border: 0;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 500;
    color: var(--auth-primary);
    cursor: pointer;
}
.auth-linkbtn:hover:not(:disabled) { text-decoration: underline; }
.auth-linkbtn:disabled { color: var(--text-muted, #98a2b3); cursor: default; }

.auth-alt { margin: 22px 0 0; text-align: center; font-size: 0.9rem; color: var(--text-secondary, #64748b); }
.auth-alt a { font-weight: 500; }
.auth-alt-split { display: flex; justify-content: space-between; align-items: center; gap: 12px; }

/* Alerts */
.auth-alert {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.88rem;
    line-height: 1.45;
    white-space: pre-line;
    animation: auth-in 0.25s ease both;
}
.auth-alert[hidden] { display: none; }
.auth-alert i { margin-top: 2px; }
.auth-alert-error { background: var(--auth-danger-soft); color: var(--auth-danger); }
.auth-alert-success { background: var(--auth-success-soft); color: var(--auth-success); }
.auth-alert-info { background: var(--auth-info-soft); color: var(--auth-primary); }

/* OTP boxes */
.auth-otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.auth-otp input {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    max-height: 64px;
    text-align: center;
    font: inherit;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1f2a3c);
    background: var(--bg-input, #fff);
    border: 1.5px solid var(--border-strong, #cfd8e3);
    border-radius: 10px;
    outline: 0;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.auth-otp input:focus { border-color: var(--auth-primary); box-shadow: 0 0 0 4px var(--auth-ring); }
.auth-otp input.is-filled { border-color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-otp input:disabled { opacity: 0.55; }

/* Password strength */
.auth-meter { height: 4px; border-radius: 4px; background: var(--border-color, #e6ebf2); overflow: hidden; margin-top: 4px; }
.auth-meter span { display: block; height: 100%; width: 0; background: var(--auth-danger); transition: width 0.3s, background 0.3s; }
.auth-meter span[data-score="2"] { background: #e08a1e; }
.auth-meter span[data-score="3"] { background: #c9b417; }
.auth-meter span[data-score="4"] { background: var(--auth-success); }
.auth-rules {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.8rem;
    color: var(--text-muted, #98a2b3);
}
.auth-rules li::before {
    content: "\f111";
    font-family: "Font Awesome 5 Free";
    font-weight: 400;
    margin-right: 6px;
    font-size: 0.72rem;
}
.auth-rules li.is-met { color: var(--auth-success); }
.auth-rules li.is-met::before { content: "\f058"; font-weight: 900; }

/* Success */
.auth-success-icon {
    width: 72px; height: 72px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--auth-success-soft);
    color: var(--auth-success);
    font-size: 1.8rem;
    animation: auth-pop 0.45s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes auth-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* Error shake */
.is-shaking { animation: auth-shake 0.4s ease; }
@keyframes auth-shake {
    0%, 100% { transform: none; }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

/* ═══ Responsive ════════════════════════════════════════════════════════ */
@media (max-width: 1199.98px) {
    .auth-visual-content { padding: 32px 40px 36px; }
}

@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: minmax(0, 1fr); }
    .auth-visual { display: none; }
    .auth-brand-mobile { visibility: visible; }
    .auth-main {
        background:
            radial-gradient(1200px 400px at 50% -200px, var(--auth-primary-soft), transparent 70%),
            var(--auth-main-bg);
    }
}

@media (max-width: 575.98px) {
    body.auth-body { font-size: 14.5px; }
    .auth-topbar { padding: 16px; }
    .auth-content { padding: 8px 16px 24px; align-items: flex-start; }
    .auth-footer { padding: 16px; }
    .auth-head h2 { font-size: 1.45rem; }
    .auth-otp { gap: 7px; }
    .auth-otp input { font-size: 1.3rem; }
    .auth-link-muted span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-slide, .auth-panel.is-entering, .auth-alert, .is-shaking, .auth-success-icon { transition: none !important; animation: none !important; }
}

/* Generic views rendered inside the auth card (e.g. Shared/Error.cshtml has Bootstrap classes) */
.auth-card .text-center { text-align: center; }
.auth-card .text-danger { color: var(--auth-danger); }
.auth-card h1:not(.auth-head h1) { font-size: 1.5rem; color: var(--text-primary, #1f2a3c); }
.auth-card h2:not(.auth-head h2) { font-size: 1.05rem; font-weight: 500; }
.auth-card code { font-size: 0.85em; word-break: break-all; }

/* ═══ Signup (Views/Signup/*, ~/js/signup.js) ═══════════════════════════ */

/* Wide mode for the register step: the image pane narrows, the form gets room */
.auth-shell { transition: grid-template-columns 0.45s ease; }
body.auth-wide .auth-shell { grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr); }
body.auth-wide .auth-card { max-width: 760px; }
body.auth-wide .auth-visual-copy h1 { font-size: clamp(1.4rem, 2vw, 2rem); }
body.auth-wide .auth-points { display: none; }
body.auth-wide .auth-content { align-items: flex-start; }

.auth-steps-4 li { font-size: 0.76rem; }

.auth-terms {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    background: var(--bg-surface-alt, #f6f8fb);
    border: 1px solid var(--border-color, #e6ebf2);
    font-size: 0.85rem;
    color: var(--text-secondary, #64748b);
}
.auth-terms[hidden] { display: none; }
.auth-terms p { margin: 4px 0 0; }

.auth-loading { display: flex; align-items: center; gap: 10px; padding: 40px 0; justify-content: center; color: var(--text-secondary, #64748b); }
.auth-loading .auth-spinner { display: block; border-color: var(--border-color, #e6ebf2); border-top-color: var(--auth-primary); }

/* Verified contact strip */
.auth-verified {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--auth-radius);
    background: var(--auth-success-soft);
    border: 1px solid transparent;
}
.auth-verified > i { color: var(--auth-success); font-size: 1.2rem; }
.auth-verified div { display: grid; min-width: 0; }
.auth-verified strong { color: var(--text-primary, #1f2a3c); font-weight: 600; }
.auth-verified span { font-size: 0.84rem; color: var(--text-secondary, #64748b); overflow: hidden; text-overflow: ellipsis; }
.auth-badge {
    margin-left: auto;
    flex: none;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem !important;
    font-weight: 600;
    color: var(--auth-success) !important;
    background: var(--bg-surface, #fff);
}

/* Sections */
.auth-section {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--border-color, #e6ebf2);
    border-radius: var(--auth-radius);
    background: var(--bg-surface, #fff);
    min-width: 0;
}
.auth-section legend {
    float: left;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text-primary, #1f2a3c);
}
.auth-section legend + * { clear: both; }
.auth-section legend span {
    width: 24px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
    font-size: 0.78rem;
}
.auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.auth-span-2 { grid-column: 1 / -1; }
.auth-field label b { color: var(--auth-danger); font-weight: 600; }
.auth-optional { color: var(--text-muted, #98a2b3); font-weight: 400; }

/* Plain inputs (no leading icon) + selects */
.auth-input-plain input, .auth-input-plain select { padding-left: 14px; }
.auth-input select {
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 48px;
    padding: 0 38px 0 14px;
    border: 0;
    outline: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-primary, #1f2a3c);
    font: inherit;
    font-size: 0.95rem;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
html[data-theme="dark"] .auth-input select { background-color: transparent; }
.auth-select::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    right: 14px;
    color: var(--text-muted, #98a2b3);
    pointer-events: none;
}
.auth-input select option { background: var(--bg-elevated, #fff); color: var(--text-primary, #1f2a3c); }
.auth-input input[type="date"] { padding-right: 12px; }
html[data-theme="dark"] .auth-input input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.85); }
.auth-input-prefix {
    font-style: normal;
    font-weight: 600;
    left: 15px !important;
}

/* Upload */
.auth-upload {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-height: 130px;
    padding: 18px;
    border: 2px dashed var(--border-strong, #cfd8e3);
    border-radius: var(--auth-radius);
    background: var(--bg-surface-alt, #f6f8fb);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s;
}
.auth-upload:hover, .auth-upload.is-dragover { border-color: var(--auth-primary); background: var(--auth-primary-soft); }
.auth-upload input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.auth-upload img { max-height: 110px; max-width: 160px; border-radius: 8px; object-fit: cover; box-shadow: var(--shadow); }
.auth-upload img[hidden] { display: none; }
.auth-upload-text { display: grid; gap: 2px; justify-items: center; color: var(--text-secondary, #64748b); }
.auth-upload-text i { font-size: 1.6rem; color: var(--auth-primary); margin-bottom: 4px; }
.auth-upload-text strong { color: var(--text-primary, #1f2a3c); font-weight: 600; }
.auth-upload.is-uploading { opacity: 0.7; pointer-events: none; }
.auth-upload.is-done { border-style: solid; border-color: var(--auth-success); }

/* Welcome */
.auth-next { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; text-align: left; }
.auth-next li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--auth-radius);
    border: 1px solid var(--border-color, #e6ebf2);
    background: var(--bg-surface, #fff);
}
.auth-next i {
    flex: none;
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px;
    background: var(--auth-primary-soft);
    color: var(--auth-primary);
}
.auth-next div { display: grid; gap: 2px; }
.auth-next strong { color: var(--text-primary, #1f2a3c); font-weight: 600; font-size: 0.93rem; }
.auth-next span { font-size: 0.85rem; color: var(--text-secondary, #64748b); }

.auth-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
a.auth-btn, a.auth-btn:hover { color: #fff; text-decoration: none; }
.auth-btn-ghost, a.auth-btn-ghost, a.auth-btn-ghost:hover {
    background: transparent;
    color: var(--text-primary, #1f2a3c);
    border: 1.5px solid var(--border-strong, #cfd8e3);
    box-shadow: none;
}
.auth-btn-ghost:hover { background: var(--bg-hover, #eef2f7); }

/* Generic message pages (Registered, Completed, Confirmed, NotFound) */
.auth-msg-icon-info { background: var(--auth-primary-soft) !important; color: var(--auth-primary) !important; }
.auth-msg-icon-warn { background: var(--auth-danger-soft) !important; color: var(--auth-danger) !important; }

@media (max-width: 991.98px) {
    body.auth-wide .auth-shell { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .auth-grid { grid-template-columns: minmax(0, 1fr); }
    .auth-section { padding: 16px; }
    .auth-actions { grid-template-columns: 1fr; }
    .auth-steps-4 li { font-size: 0; gap: 0; justify-content: center; }
    .auth-steps-4 li span { font-size: 0.7rem; }
    .auth-verified { flex-wrap: wrap; }
}
