/* DUITDIGITAL authentication experience — isolated from public/member shells. */
body.auth-page {
    --auth-ink: #241330;
    --auth-muted: #75677d;
    --auth-line: #eadfeb;
    --auth-surface: #fffdfc;
    --auth-soft: #fff7f6;
    --auth-purple: #7c3aed;
    --auth-coral: #e94f75;
    --auth-amber: #f59e0b;
    min-height: 100vh;
    background: var(--auth-soft);
    color: var(--auth-ink);
}

.auth-page .auth-split { min-height: 100dvh; background: var(--auth-soft); }
.auth-page .auth-split-visual {
    flex: 0 0 48%;
    min-height: 100dvh;
    padding: clamp(42px, 6vw, 88px);
    isolation: isolate;
    background:
        radial-gradient(circle at 20% 18%, rgba(251,113,133,.23), transparent 24%),
        radial-gradient(circle at 88% 78%, rgba(245,158,11,.16), transparent 25%),
        linear-gradient(145deg, #180d2f 0%, #35154d 55%, #671f58 100%);
}
.auth-page .auth-split-visual::before {
    z-index: -1;
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    opacity: .34;
    filter: none;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 58px 58px;
    mask-image: linear-gradient(to bottom right, #000, transparent 78%);
}
.auth-page .auth-split-visual::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(42vw, 560px);
    aspect-ratio: 1;
    right: -28%;
    top: 12%;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 42% 58% 64% 36%;
    box-shadow: inset 0 0 100px rgba(251,113,133,.08);
    transform: rotate(18deg);
}
.auth-page .auth-split-visual > div { width: min(100%, 560px); }
.auth-page .auth-split-visual .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: #ffd3dc;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}
.auth-page .auth-split-visual h2 {
    max-width: 600px;
    margin-bottom: 18px !important;
    font-size: clamp(2.7rem, 4.6vw, 5rem);
    font-weight: 850;
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}
.auth-page .auth-split-visual p { max-width: 510px !important; color: #cbbbd1; font-size: .98rem; line-height: 1.8; }
.auth-page .auth-split-visual .stat-card {
    min-height: 102px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 18px;
    background: rgba(255,255,255,.065);
    box-shadow: inset 0 1px rgba(255,255,255,.08);
    backdrop-filter: blur(14px);
}
.auth-page .auth-split-visual .stat-card .number { color: #fff; font-size: 1.45rem; font-weight: 820; }
.auth-page .auth-split-visual .stat-card .label { color: #bdaec7; font-size: .68rem; }
.auth-page .auth-split-visual li { display: flex; align-items: center; gap: 8px; color: #d8cbdc; font-size: .84rem; }
.auth-page .auth-split-visual li i { color: #fbbf24; }

.auth-page .auth-split-form {
    position: relative;
    padding: clamp(22px, 4.5vw, 72px);
    background:
        radial-gradient(circle at 100% 0, rgba(124,58,237,.08), transparent 26%),
        radial-gradient(circle at 0 100%, rgba(251,113,133,.07), transparent 25%),
        var(--auth-soft);
}
.auth-page .auth-card {
    max-width: 500px;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid rgba(87,48,91,.1);
    border-radius: 26px;
    background: rgba(255,253,252,.9);
    box-shadow: 0 28px 80px rgba(75,37,81,.12), inset 0 1px #fff;
    backdrop-filter: blur(18px);
}
.auth-page-register .auth-card { max-width: 590px; }
.auth-page .auth-theme-toggle { top: 20px; right: 20px; }
.auth-page .auth-theme-toggle .btn-theme-toggle { border-color: var(--auth-line); background: #fff; color: #7c3aed; }
.auth-page .auth-card-heading { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 16px; align-items: center; margin: 14px 44px 30px 0; }
.auth-page .auth-card .auth-logo {
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 17px;
    background: linear-gradient(135deg, #7c3aed, #e94f75);
    box-shadow: 0 12px 26px rgba(151,55,151,.24), inset 0 1px rgba(255,255,255,.28);
    font-size: 1.25rem;
}
.auth-page .auth-card-heading small { color: #9b4aa0; font-size: .61rem; font-weight: 850; letter-spacing: .13em; }
.auth-page .auth-card-heading h1 { margin: 3px 0 4px; color: var(--auth-ink); font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 830; letter-spacing: -.035em; }
.auth-page .auth-card-heading p { margin: 0; color: var(--auth-muted); font-size: .76rem; line-height: 1.5; }
.auth-page .form-label { margin-bottom: 7px; color: #48344f; font-size: .74rem; font-weight: 760; }
.auth-page .form-control,
.auth-page .input-group-text,
.auth-page .password-toggle {
    min-height: 48px;
    border-color: var(--auth-line);
    background-color: #fff !important;
}
.auth-page .form-control { color: var(--auth-ink); font-size: .84rem; }
.auth-page .form-control::placeholder { color: #b2a6b5; }
.auth-page .input-group-text { padding-inline: 15px; border-right: 0; color: #9b8da0; }
.auth-page .input-group .form-control:not(:first-child) { border-left: 0; }
.auth-page .input-group:focus-within .input-group-text,
.auth-page .input-group:focus-within .form-control,
.auth-page .input-group:focus-within .password-toggle { border-color: #bc75d0; }
.auth-page .form-control:focus { border-color: #bc75d0; box-shadow: 0 0 0 4px rgba(124,58,237,.09); }
.auth-page .input-group .form-control:focus { box-shadow: none; }
.auth-page a:not(.btn) { color: #8b3fc4; text-decoration: none; }
.auth-page a:not(.btn):hover { color: #d6426a; }
.auth-page .captcha-box {
    min-height: 54px;
    border: 1px solid #dec7e4;
    border-radius: 13px;
    background: repeating-linear-gradient(135deg, #fbf4fc, #fbf4fc 10px, #fff9f8 10px, #fff9f8 20px);
    color: #6e2d85;
    font-size: 1.25rem;
    letter-spacing: .4em;
}
.auth-page #refreshCaptcha { width: 52px; border-color: var(--auth-line); border-radius: 13px; background: #fff; color: #8b3fc4; }
.auth-page #refreshCaptcha:hover { border-color: #bc75d0; background: #faf4fb; }
.auth-page .auth-submit {
    min-height: 50px;
    border-radius: 13px;
    background: linear-gradient(120deg, #7c3aed, #e94f75 72%, #f59e0b);
    box-shadow: 0 13px 28px rgba(145,50,139,.25);
    font-size: .84rem;
    font-weight: 780;
}
.auth-page .auth-submit:hover { transform: translateY(-2px); background: linear-gradient(120deg, #6d28d9, #dc3f68 72%, #e48e08); box-shadow: 0 17px 34px rgba(145,50,139,.32); }
.auth-page .auth-divider { display: flex; align-items: center; gap: 12px; margin: 2px 0 14px; color: var(--auth-muted); font-size: .68rem; }
.auth-page .auth-divider::before, .auth-page .auth-divider::after { content: ''; height: 1px; flex: 1; background: var(--auth-line); }
.auth-page .auth-google-btn { display: flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--auth-line); border-radius: 13px; background: #fff; color: #34253b; font-size: .8rem; font-weight: 760; box-shadow: 0 8px 22px rgba(75,37,81,.06); }
.auth-page .auth-google-btn:hover { border-color: #c9aecf; background: #fffafd; color: #251331; transform: translateY(-1px); }
.auth-page .auth-google-mark { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0); color: #fff; font-size: .72rem; font-weight: 900; box-shadow: inset 0 0 0 5px #fff; }
.auth-page .alert { border: 0; border-radius: 13px; font-size: .78rem; }

[data-theme="dark"] body.auth-page,
[data-bs-theme="dark"] body.auth-page {
    --auth-ink: #f7edf8;
    --auth-muted: #b9a9bd;
    --auth-line: #4b3652;
    --auth-soft: #160e1d;
}
[data-theme="dark"] .auth-page .auth-split-form,
[data-bs-theme="dark"] .auth-page .auth-split-form { background: radial-gradient(circle at 100% 0, rgba(124,58,237,.13), transparent 26%), #160e1d; }
[data-theme="dark"] .auth-page .auth-card,
[data-bs-theme="dark"] .auth-page .auth-card { border-color: #3b2942; background: rgba(37,24,45,.94); box-shadow: 0 28px 80px rgba(0,0,0,.28), inset 0 1px rgba(255,255,255,.04); }
[data-theme="dark"] .auth-page .auth-google-btn,
[data-bs-theme="dark"] .auth-page .auth-google-btn { border-color: #4a3552; background: #24182b; color: #f4eaf5; }
[data-theme="dark"] .auth-page .form-label,
[data-bs-theme="dark"] .auth-page .form-label { color: #eadcec; }
[data-theme="dark"] .auth-page .form-control,
[data-theme="dark"] .auth-page .input-group-text,
[data-theme="dark"] .auth-page .password-toggle,
[data-theme="dark"] .auth-page #refreshCaptcha,
[data-theme="dark"] .auth-page .auth-theme-toggle .btn-theme-toggle,
[data-bs-theme="dark"] .auth-page .form-control,
[data-bs-theme="dark"] .auth-page .input-group-text,
[data-bs-theme="dark"] .auth-page .password-toggle,
[data-bs-theme="dark"] .auth-page #refreshCaptcha,
[data-bs-theme="dark"] .auth-page .auth-theme-toggle .btn-theme-toggle { border-color: #4b3652; background-color: #2b1d33 !important; color: #f4e8f5; }
[data-theme="dark"] .auth-page .captcha-box,
[data-bs-theme="dark"] .auth-page .captcha-box { border-color: #604368; background: repeating-linear-gradient(135deg, #2b1d33, #2b1d33 10px, #321f37 10px, #321f37 20px); color: #f0a7c3; }

@media (max-width: 991.98px) {
    .auth-page .auth-split-form { min-height: 100dvh; }
    .auth-page .auth-card { max-width: 560px; }
}
@media (max-width: 575.98px) {
    .auth-page .auth-split-form { align-items: flex-start; padding: 18px 14px; }
    .auth-page .auth-card { margin-block: auto; padding: 24px 18px; border-radius: 21px; }
    .auth-page .auth-theme-toggle { top: 14px; right: 14px; }
    .auth-page .auth-card-heading { grid-template-columns: 45px minmax(0,1fr); gap: 12px; margin: 8px 42px 24px 0; }
    .auth-page .auth-card .auth-logo { width: 45px; height: 45px; border-radius: 14px; }
    .auth-page .auth-card-heading h1 { font-size: 1.28rem; }
    .auth-page .row.g-3 { --bs-gutter-y: .8rem; }
    .auth-page .form-control,
    .auth-page .input-group-text,
    .auth-page .password-toggle { min-height: 46px; }
    .auth-page .captcha-box { letter-spacing: .28em; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-page *, .auth-page *::before, .auth-page *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
