/* JBC VVIP Auth — monochrome premium (login/order/register card) */
:root {
    --auth-bg: #0a0a0b;
    --auth-surface: #111113;
    --auth-surface-strong: #17181b;
    --auth-surface-3: #1e1f23;
    --auth-border: rgba(255, 255, 255, 0.06);
    --auth-border-strong: rgba(255, 255, 255, 0.10);
    --auth-text: #f4f4f5;
    --auth-muted: #8b8b93;
    --auth-primary: #f4f4f5;
    --auth-primary-hover: #ffffff;
    --auth-primary-contrast: #0a0a0b;
    --auth-primary-soft: rgba(255, 255, 255, 0.08);
    --auth-danger: #f4a4a4;
    --auth-success: #a7f3d0;
    --auth-radius: 20px;
    --auth-control-radius: 12px;
}

[data-theme="light"] {
    --auth-bg: #fafafa;
    --auth-surface: #ffffff;
    --auth-surface-strong: #f4f4f5;
    --auth-surface-3: #e8e8ea;
    --auth-border: rgba(10, 10, 11, 0.08);
    --auth-border-strong: rgba(10, 10, 11, 0.14);
    --auth-text: #0a0a0b;
    --auth-muted: #6b6b74;
    --auth-primary: #0a0a0b;
    --auth-primary-hover: #1a1a1c;
    --auth-primary-contrast: #ffffff;
    --auth-primary-soft: rgba(10, 10, 11, 0.06);
    --auth-danger: #b91c1c;
    --auth-success: #047857;
}

html, body {
    min-height: 100%;
    background: var(--auth-bg);
    color: var(--auth-text);
}
body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(255, 255, 255, 0.03), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(255, 255, 255, 0.02), transparent 60%),
        var(--auth-bg);
}
[data-theme="light"] body {
    background:
        radial-gradient(1200px 600px at 90% -10%, rgba(10, 10, 11, 0.03), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(10, 10, 11, 0.02), transparent 60%),
        var(--auth-bg);
}

.auth-shell {
    min-height: 100vh;
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-frame { width: 100%; max-width: 460px; }
.auth-frame.auth-frame-wide { max-width: 1080px; }

.auth-card {
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    border-radius: var(--auth-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
    padding: 32px;
    overflow: hidden;
    position: relative;
}
[data-theme="light"] .auth-card {
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}
.auth-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(600px 200px at 0% 0%, rgba(255, 255, 255, 0.04), transparent 60%);
}
[data-theme="light"] .auth-card::before {
    background: radial-gradient(600px 200px at 0% 0%, rgba(10, 10, 11, 0.03), transparent 60%);
}
.auth-card.auth-card-flush { padding: 0; }
.auth-card.auth-card-flush::before { display: none; }

.auth-card > * { position: relative; }

.auth-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
}
.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f4f4f5 0%, #a1a1aa 100%);
    color: #0a0a0b;
}
[data-theme="light"] .auth-brand-mark {
    background: linear-gradient(135deg, #18181b 0%, #52525b 100%);
    color: #ffffff;
}
.auth-brand-text { font-size: .95rem; font-weight: 700; letter-spacing: .04em; color: inherit; }
.auth-brand-copy strong {
    display: block;
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--auth-text);
    letter-spacing: -0.01em;
}
.auth-brand-copy span {
    display: block;
    margin-top: 2px;
    color: var(--auth-muted);
    font-size: .76rem;
}
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--auth-surface-strong);
    border: 1px solid var(--auth-border);
    color: var(--auth-text);
    cursor: pointer;
    font-size: .82rem;
    font-weight: 600;
    transition: background .16s ease, border-color .16s ease;
}
.theme-toggle:hover {
    background: var(--auth-surface-3);
    border-color: var(--auth-border-strong);
}

.auth-card h2, .auth-card h3, .auth-card h4, .auth-card h5, .auth-card h6,
.auth-card label,
.auth-card .text-bold,
.auth-card .qris-card-name,
.auth-card tr td.font-weight-bold,
.auth-card tr td.text-bold {
    color: var(--auth-text) !important;
}
.auth-card h2, .auth-card h3, .auth-card h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
}
.auth-card .text-muted,
.auth-card small,
.auth-card p.text-muted,
.auth-card .qris-card-sub,
.auth-card .float-wa-tooltip,
.auth-card *[style*="color: #64748b"],
.auth-card *[style*="color:#64748b"] {
    color: var(--auth-muted) !important;
}

.auth-card .form-control,
.auth-card code,
.auth-card .list-group-item,
.auth-card .qris-card,
.auth-card .btn-outline-secondary,
.auth-card .btn-outline-primary,
.auth-card button[style*="background: #fff"],
.auth-card a[style*="background: #fff"] {
    background: var(--auth-surface-strong) !important;
    border-color: var(--auth-border) !important;
    color: var(--auth-text) !important;
    box-shadow: none !important;
}
.auth-card .form-control {
    min-height: 48px;
    border-radius: var(--auth-control-radius);
    padding: 12px 16px;
    font-size: .92rem;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.auth-card .form-control:hover:not(:focus) {
    border-color: var(--auth-border-strong) !important;
}
.auth-card .form-control:focus {
    border-color: var(--auth-border-strong) !important;
    box-shadow: 0 0 0 3px var(--auth-primary-soft) !important;
    background: var(--auth-surface) !important;
}
.auth-card .form-group label { font-weight: 500; font-size: .82rem; letter-spacing: -0.005em; }

.auth-card .btn {
    border-radius: var(--auth-control-radius);
    font-weight: 500;
    padding: 12px 20px;
    box-shadow: none !important;
    letter-spacing: -0.005em;
    transition: background .16s ease, border-color .16s ease, transform .12s ease;
}
.auth-card .btn:active { transform: translateY(1px); }

.auth-card .btn-primary,
.auth-card .btn-info {
    background: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
    color: var(--auth-primary-contrast) !important;
}
.auth-card .btn-primary:hover,
.auth-card .btn-info:hover {
    background: var(--auth-primary-hover) !important;
    border-color: var(--auth-primary-hover) !important;
    color: var(--auth-primary-contrast) !important;
}

.auth-card .btn-outline-secondary:hover,
.auth-card .btn-outline-primary:hover {
    background: var(--auth-surface-3) !important;
    border-color: var(--auth-border-strong) !important;
    color: var(--auth-text) !important;
}

.auth-card table,
.auth-card table th,
.auth-card table td,
.auth-card .list-group-item,
.auth-card hr,
.auth-card .border-top,
.auth-card .border-right {
    border-color: var(--auth-border) !important;
}
.auth-card .nav-link.active {
    background: var(--auth-primary-soft) !important;
    color: var(--auth-text) !important;
    border-color: var(--auth-border) !important;
    border-radius: 10px !important;
}

.btn-info-link {
    display: inline-block;
    font-size: .72rem;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--auth-border);
    color: var(--auth-text) !important;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    background: var(--auth-surface-strong);
    font-weight: 500;
    margin: 2px;
}
.btn-info-link:hover {
    background: var(--auth-surface-3);
    color: var(--auth-text) !important;
    border-color: var(--auth-border-strong);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .auth-shell { padding: 20px 16px; }
    .auth-card { padding: 24px; border-radius: 18px; }
    .auth-card.auth-card-flush { padding: 0; }
}

/* Minimal root login */
body.auth-root-login {
    --auth-bg: #0a0a0b;
    --auth-surface: #111113;
    --auth-surface-strong: #17181b;
    --auth-surface-3: #1e1f23;
    --auth-border: rgba(255, 255, 255, 0.08);
    --auth-border-strong: rgba(255, 255, 255, 0.14);
    --auth-text: #f4f4f5;
    --auth-muted: #8b8b93;
    --auth-primary: #f4f4f5;
    --auth-primary-hover: #ffffff;
    --auth-primary-contrast: #0a0a0b;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    background: var(--auth-bg) !important;
}
body.auth-root-login .auth-shell {
    min-height: 100vh;
    max-height: 100vh;
    padding: 24px;
    box-sizing: border-box;
}
body.auth-root-login .auth-frame {
    max-width: 420px;
}
body.auth-root-login .auth-card {
    padding: 32px;
    border-radius: 20px;
    background: var(--auth-surface);
    border: 1px solid var(--auth-border);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}
body.auth-root-login .auth-card::before {
    display: none;
}
body.auth-root-login .auth-card-inner {
    padding: 0 !important;
}
body.auth-root-login .auth-card .btn-primary {
    background: var(--auth-primary) !important;
    border-color: var(--auth-primary) !important;
    color: var(--auth-primary-contrast) !important;
}
@media (max-width: 520px) {
    body.auth-root-login .auth-shell { padding: 16px; }
    body.auth-root-login .auth-card { padding: 24px; }
}
