/* Dark theme (the default) for the login / registration pages and the setup wizards.
 * wizard.css and login.css are written for light pages; these rules only apply under
 * <html data-bs-theme="dark"> and are loaded after them. */

[data-bs-theme="dark"] body {
    background:
        radial-gradient(900px 500px at 85% -10%, rgba(124, 199, 236, .12), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(232, 209, 112, .06), transparent 60%),
        #0a1522;
    color: var(--wos-text);
}

/* ---------- Step tabs ---------- */
[data-bs-theme="dark"] .wizard-tabs {
    background: rgba(10, 21, 34, .85);
    border-bottom: 1px solid rgba(169, 221, 243, .18);
    backdrop-filter: blur(8px);
}
[data-bs-theme="dark"] .wizard-tab { color: var(--wos-muted); }
[data-bs-theme="dark"] .wizard-tab.active { color: var(--wos-heading); }
[data-bs-theme="dark"] .wizard-tab.completed { color: var(--wos-accent); }
[data-bs-theme="dark"] .wizard-tab-number { background: rgba(169, 221, 243, .18); color: var(--wos-accent); }
[data-bs-theme="dark"] .wizard-tab.active .wizard-tab-number { background: var(--wos-gold); color: #1a1405; box-shadow: 0 0 14px rgba(232, 209, 112, .5); }
[data-bs-theme="dark"] .wizard-tab.completed .wizard-tab-number { background: #1b6394; color: #fff; }

/* ---------- Login card (login.css) ---------- */
[data-bs-theme="dark"] form:has(.svgContainer) {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(124, 199, 236, .06);
}
[data-bs-theme="dark"] form .svgContainer { box-shadow: 0 0 30px rgba(124, 199, 236, .25); }
[data-bs-theme="dark"] form .svgContainer:after { border-color: #7cc7ec; }
[data-bs-theme="dark"] form label { color: var(--wos-accent); }
[data-bs-theme="dark"] form input[type=email],
[data-bs-theme="dark"] form input[type=text],
[data-bs-theme="dark"] form input[type=number],
[data-bs-theme="dark"] form input[type=url],
[data-bs-theme="dark"] form input[type=search],
[data-bs-theme="dark"] form input[type=password] {
    background-color: var(--wos-surface-2);
    border-color: rgba(124, 199, 236, .45);
    color: var(--wos-heading);
}
[data-bs-theme="dark"] form input:focus { border-color: #7cc7ec !important; box-shadow: 0 0 0 3px rgba(124, 199, 236, .2) !important; }
[data-bs-theme="dark"] form .inputGroup1 .helper1 { color: var(--wos-muted); }
[data-bs-theme="dark"] form button#login {
    background: linear-gradient(135deg, #1b6394, #2a86c0);
    box-shadow: 0 6px 18px rgba(27, 99, 148, .45);
}
[data-bs-theme="dark"] form button#login:hover { background: linear-gradient(135deg, #2477b0, #3a9ad6); }
[data-bs-theme="dark"] form .inputGroup2 #showPasswordToggle { color: var(--wos-muted); }
[data-bs-theme="dark"] form .inputGroup2 #showPasswordToggle .indicator { background-color: var(--wos-surface-2); border-color: #7cc7ec; }
[data-bs-theme="dark"] form .inputGroup2 #showPasswordToggle .indicator:after { border-color: #7cc7ec; }
[data-bs-theme="dark"] form .error { color: #ff8a8a; }

/* ---------- Wizard content (wizard.css) ---------- */
[data-bs-theme="dark"] .wizard-content,
[data-bs-theme="dark"] .success-container {
    background: var(--wos-surface);
    border: 1px solid var(--wos-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
    color: var(--wos-text);
}
[data-bs-theme="dark"] .wizard-header h1 { color: var(--wos-heading); }
[data-bs-theme="dark"] .wizard-header p { color: var(--wos-muted); }
[data-bs-theme="dark"] .step-title { color: var(--wos-heading); }
[data-bs-theme="dark"] .form-group label { color: var(--wos-accent); }
[data-bs-theme="dark"] .form-group input,
[data-bs-theme="dark"] .form-group select,
[data-bs-theme="dark"] .form-group textarea,
[data-bs-theme="dark"] .select2-container--default .select2-selection--single {
    background-color: var(--wos-surface-2);
    border-color: rgba(124, 199, 236, .35);
    color: var(--wos-heading);
}
[data-bs-theme="dark"] .form-group input:focus,
[data-bs-theme="dark"] .form-group select:focus,
[data-bs-theme="dark"] .form-group textarea:focus { border-color: #7cc7ec; }
[data-bs-theme="dark"] .select2-container--default .select2-selection--single .select2-selection__rendered { color: var(--wos-heading); }
[data-bs-theme="dark"] .select2-dropdown { background: var(--wos-surface); border-color: var(--wos-border); color: var(--wos-text); }
[data-bs-theme="dark"] .select2-search__field { background: var(--wos-surface-2); color: var(--wos-heading); border-color: var(--wos-border) !important; }
[data-bs-theme="dark"] .select2-results__option--highlighted { background: #1b6394 !important; }
[data-bs-theme="dark"] .select2-results__option[aria-selected=true] { background: var(--wos-surface-3); }
[data-bs-theme="dark"] .formset-row,
[data-bs-theme="dark"] .summary-box { background: var(--wos-surface-2); border-color: rgba(124, 199, 236, .4); }
[data-bs-theme="dark"] .formset-row h4,
[data-bs-theme="dark"] .summary-box h3,
[data-bs-theme="dark"] .info-box h5 { color: var(--wos-accent); }
[data-bs-theme="dark"] .info-box { background: rgba(124, 199, 236, .08); border-left-color: #7cc7ec; }
[data-bs-theme="dark"] .info-box p,
[data-bs-theme="dark"] .summary-value { color: var(--wos-text); }
[data-bs-theme="dark"] .summary-item { border-bottom-color: var(--wos-border); }
[data-bs-theme="dark"] .summary-label,
[data-bs-theme="dark"] .section-label { color: var(--wos-muted); }
[data-bs-theme="dark"] .section-label::after { background: var(--wos-border); }
[data-bs-theme="dark"] .btn-secondary { background-color: #2b4a63; color: var(--wos-heading); }
[data-bs-theme="dark"] .btn-secondary:hover { background-color: #36597a; }
[data-bs-theme="dark"] .errorlist { color: #ff8a8a; }

/* Step tabs are an indicator, not buttons (any theme). */
.wizard-tab { cursor: default; user-select: none; }
