/*
 * Auth Pages - Shared Styles
 * Used by all standalone auth pages (login, register, forgot/reset password,
 * accept invitation, 2FA verify, registration closed).
 * Loaded via base_auth.html.
 *
 * Design: Hybrid marketing/app blend — dark navy branding panel (left),
 * clean light form section (right), Safety Orange accents throughout.
 */

/* ===== Base ===== */
* {
    font-family: var(--font-body);
}

:root {
    --auth-navy: #0A192F;
    --auth-navy-light: #112240;
    --auth-navy-dark: #020c1b;
    --auth-orange: #FF6B00;
    --auth-orange-hover: #e65c00;
    --auth-teal: #64ffda;
    --auth-text-light: #E6F1FF;
    --auth-text-muted: #8892b0;
    --auth-border-dark: #233554;
    --auth-heading-light: #ccd6f6;
    --auth-font-heading: 'Outfit', 'Inter', sans-serif;
}

body {
    background: #0e1a2b;
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 0, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 255, 218, 0.03) 0%, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    transition: background-color var(--transition-base);
}

/* ===== Layout ===== */
.auth-wrapper {
    width: 100%;
    padding: var(--space-6) var(--space-4);
}

.auth-card {
    background: var(--color-white);
    border: 1px solid var(--auth-border-dark);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transition: all var(--transition-base);
}

/* ===== Branding Panel (left side — dark navy) ===== */
.auth-branding {
    background: linear-gradient(160deg, var(--auth-navy) 0%, var(--auth-navy-light) 100%);
    color: var(--auth-text-light);
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--auth-border-dark);
}

.auth-logo {
    font-size: 3.5rem;
    margin-bottom: var(--space-4);
    color: var(--auth-orange);
    opacity: 1;
}

.auth-branding h2 {
    font-family: var(--auth-font-heading);
    font-weight: 700;
    margin-bottom: var(--space-2);
    color: var(--auth-heading-light);
}

.auth-branding p {
    opacity: 0.85;
    margin-bottom: 0;
    color: var(--auth-text-muted);
}

/* Feature list in branding panel */
.feature-list {
    margin-top: var(--space-8);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--space-5);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: var(--space-4);
    color: var(--auth-orange);
    opacity: 1;
}

.feature-item h6 {
    font-family: var(--auth-font-heading);
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--auth-heading-light);
}

.feature-item small {
    color: var(--auth-text-muted);
    opacity: 1;
}

/* Made in UK badge */
.auth-made-in-uk {
    margin-top: auto;
    padding-top: var(--space-8);
    color: var(--auth-text-muted);
    font-size: var(--font-size-sm);
}

/* ===== Form Section (right side — clean/light) ===== */
.auth-form-section {
    padding: var(--space-10);
    background: var(--color-white);
}

.auth-form-section h3 {
    font-family: var(--auth-font-heading);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.auth-form-section > p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
}

/* Mobile header (logo shown when branding panel is hidden) */
.auth-mobile-header {
    font-size: 2.5rem;
    color: var(--auth-orange);
}

.auth-mobile-header + h4 {
    font-family: var(--auth-font-heading);
    font-weight: 700;
}

/* ===== Form Controls ===== */
.auth-form-section .form-label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
}

.auth-form-section .input-group-text {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.auth-form-section .form-control {
    border-color: var(--color-border);
    background: var(--color-white);
    color: var(--color-text-primary);
    padding: var(--space-3) var(--space-4);
    transition: all var(--transition-fast);
}

.auth-form-section .form-control:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
    background: var(--color-white);
}

.auth-form-section .form-control::placeholder {
    color: var(--color-text-muted);
}

/* ===== Buttons ===== */
.auth-form-section .btn-primary {
    background: var(--auth-orange);
    border: none;
    padding: var(--space-3) var(--space-6);
    font-family: var(--auth-font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.auth-form-section .btn-primary:hover {
    background: var(--auth-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.auth-form-section .btn-primary:active {
    transform: translateY(0);
}

.auth-form-section .btn-outline-primary {
    border-color: var(--auth-orange);
    color: var(--auth-orange);
    font-weight: var(--font-weight-medium);
    border-radius: 4px;
}

.auth-form-section .btn-outline-primary:hover {
    background: var(--auth-orange);
    border-color: var(--auth-orange);
    color: white;
}

.auth-form-section .btn-outline-secondary {
    border-color: var(--color-border);
    color: var(--color-text-secondary);
}

.auth-form-section .btn-outline-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-border);
    color: var(--color-text-primary);
}

/* ===== Theme Toggle ===== */
.auth-theme-toggle {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 100;
    backdrop-filter: blur(8px);
}

.auth-theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.auth-theme-toggle i {
    font-size: 1.25rem;
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-theme-toggle .ti-moon-fill {
    display: none;
}

[data-theme="dark"] .auth-theme-toggle .ti-sun-fill {
    display: inline;
}

:not([data-theme="dark"]) .auth-theme-toggle .ti-sun-fill {
    display: none;
}

:not([data-theme="dark"]) .auth-theme-toggle .ti-moon-fill {
    display: inline;
}

/* ===== Divider ===== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-6) 0;
    color: var(--color-text-muted);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.auth-divider span {
    padding: 0 var(--space-4);
    font-size: var(--font-size-sm);
}

/* ===== Footer Links ===== */
.auth-footer-links {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-6);
    margin-top: var(--space-8);
}

.auth-footer-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.auth-footer-links a:hover {
    color: var(--auth-orange);
}

/* ===== Auth Footer Link (back to login etc) ===== */
.auth-footer-link {
    color: var(--auth-orange);
    text-decoration: none;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

/* ===== Alert Overrides ===== */
.auth-form-section .alert {
    border-radius: var(--radius-md);
    border: none;
}

.auth-form-section .text-danger {
    color: var(--color-danger) !important;
}

/* ===== Password Strength Meter ===== */
.password-strength-meter {
    margin-top: var(--space-2);
    margin-bottom: var(--space-2);
}

.strength-bar-container {
    height: 6px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: var(--radius-full);
}

.strength-bar.weak { width: 25%; background: var(--color-danger); }
.strength-bar.fair { width: 50%; background: var(--color-warning-dark); }
.strength-bar.good { width: 75%; background: var(--color-warning); }
.strength-bar.strong { width: 100%; background: var(--color-success); }

.strength-label {
    font-size: var(--font-size-xs);
    margin-top: var(--space-1);
    font-weight: var(--font-weight-medium);
}

.strength-label.weak { color: var(--color-danger); }
.strength-label.fair { color: var(--color-warning-dark); }
.strength-label.good { color: var(--color-warning); }
.strength-label.strong { color: var(--color-success); }

/* ===== Password Requirements ===== */
.password-requirements {
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    margin-top: var(--space-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
    padding-top: 0;
    padding-bottom: 0;
}

.password-requirements.expanded {
    max-height: 300px;
    opacity: 1;
    padding: var(--space-3);
}

/* Static variant (always visible, e.g. in branding panel) */
.password-requirements.static {
    max-height: none;
    opacity: 1;
    padding: var(--space-3);
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-inverse);
}

.password-requirements-title {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.password-requirement {
    display: flex;
    align-items: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-1);
}

.password-requirement:last-child {
    margin-bottom: 0;
}

.password-requirement i {
    width: 16px;
    margin-right: var(--space-2);
    font-size: 0.75rem;
}

.password-requirement.met {
    color: var(--color-success);
}

.password-requirement.met i {
    color: var(--color-success);
}

.password-requirement.unmet {
    color: var(--color-text-muted);
}

.password-requirement.unmet i {
    color: var(--color-danger);
}

/* ===== Password Visibility Toggle ===== */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--color-text-primary);
}

.password-wrapper .form-control {
    padding-right: 44px;
}

/* ===== Password Match Indicator ===== */
.password-match-indicator {
    font-size: var(--font-size-sm);
    margin-top: var(--space-1);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.password-match-indicator.match {
    color: var(--color-success);
}

.password-match-indicator.no-match {
    color: var(--color-danger);
}

/* ===== Org Badge (invitation page) ===== */
.auth-org-badge {
    background: var(--auth-orange);
    color: white;
    padding: var(--space-2) var(--space-4);
    border-radius: 4px;
    font-family: var(--auth-font-heading);
    font-weight: 600;
    display: inline-block;
}

/* ===== Security Notice Card ===== */
.auth-notice-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
}

.auth-notice-card h6 {
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.auth-notice-card small {
    color: var(--color-text-secondary);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
    .auth-branding {
        padding: var(--space-8) var(--space-6);
    }

    .auth-form-section {
        padding: var(--space-8) var(--space-6);
    }
}

/* ===== Login Extras ===== */
.auth-pricing-banner {
    background: var(--auth-navy-light);
    border: 1px solid var(--auth-border-dark);
    border-radius: 4px;
    padding: var(--space-4);
    margin-top: var(--space-6);
    text-align: center;
}

.auth-pricing-banner small {
    color: var(--auth-text-muted);
}

/* ===== Registration Wizard ===== */
body.auth-register {
    align-items: flex-start;
    padding-top: 2rem;
}

body.auth-centered {
    justify-content: center;
}

.section-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-3);
    margin-top: var(--space-5);
}

.section-label:first-of-type {
    margin-top: 0;
}

.auth-form-section .form-select {
    border-color: var(--color-border);
    background-color: var(--color-white);
    color: var(--color-text-primary);
    padding: var(--space-3) var(--space-4);
    transition: all var(--transition-fast);
}

.auth-form-section .form-select:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.auth-form-section .btn-link {
    color: var(--color-text-muted);
    text-decoration: none;
}

.auth-form-section .btn-link:hover {
    color: var(--color-text-secondary);
    text-decoration: underline;
}

.auth-form-section .alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-info);
}

.auth-form-section .form-control.is-valid {
    border-color: var(--color-success);
}

.auth-form-section .form-control.is-invalid {
    border-color: var(--color-danger);
}

.suggestion-link {
    color: var(--auth-orange);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.suggestion-link:hover {
    text-decoration: underline;
}

/* Progress indicator styles */
.progress-steps {
    display: flex;
    justify-content: center;
    margin-bottom: var(--space-6);
    gap: var(--space-2);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    transition: all var(--transition-fast);
}

.step-number.active {
    background: var(--auth-orange);
    color: white;
}

.step-number.completed {
    background: var(--color-success);
    color: white;
}

.step-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    display: none;
}

.step-connector {
    width: 40px;
    height: 2px;
    background: var(--color-border);
}

.step-connector.completed {
    background: var(--color-success);
}

/* Wizard step styles */
.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Checkbox grid styles */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-2);
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.checkbox-item:hover {
    border-color: var(--auth-orange);
    background: rgba(255, 107, 0, 0.05);
}

.checkbox-item input[type="checkbox"] {
    margin-right: var(--space-2);
    margin-top: 2px;
}

.checkbox-item.checked {
    border-color: var(--auth-orange);
    background: rgba(255, 107, 0, 0.1);
}

.checkbox-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    line-height: 1.4;
}

/* Navigation buttons */
.wizard-nav {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.wizard-nav .btn {
    flex: 1;
}

/* Step description */
.step-description {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-4);
}

/* Optional badge */
.optional-badge {
    font-size: var(--font-size-xs);
    padding: 2px 8px;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    border-radius: var(--radius-full);
    margin-left: var(--space-2);
    font-weight: normal;
}

/* Rate limit feedback */
.rate-limit-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--color-danger);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    display: none;
}

.rate-limit-alert.visible {
    display: block;
}

.rate-limit-alert h5 {
    color: var(--color-danger);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2);
}

.rate-limit-alert p {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    margin-bottom: 0;
}

.rate-limit-countdown {
    font-weight: var(--font-weight-semibold);
    color: var(--color-danger);
}

/* Terms checkbox styling */
.terms-checkbox {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.terms-checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.terms-checkbox label {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.5;
    cursor: pointer;
}

.terms-checkbox a {
    color: var(--auth-orange);
    text-decoration: none;
}

.terms-checkbox a:hover {
    text-decoration: underline;
}

.terms-checkbox.is-invalid {
    border-color: var(--color-danger);
}

@media (max-width: 991.98px) {
    .step-label {
        display: none;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .step-label {
        display: block;
    }
}

/* ===== 2FA Verify ===== */
.auth-2fa-card {
    background: var(--color-white);
    border: 1px solid var(--auth-border-dark);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 420px;
    width: 100%;
    padding: var(--space-8);
}

.auth-2fa-icon {
    width: 64px;
    height: 64px;
    background: var(--auth-navy);
    border: 2px solid var(--auth-orange);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.auth-2fa-icon i {
    font-size: 1.75rem;
    color: var(--auth-orange);
}

.auth-2fa-title {
    font-family: var(--auth-font-heading);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2);
    color: var(--color-text-primary);
}

.auth-2fa-subtitle {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: var(--space-6);
}

.code-input {
    font-size: 1rem;
    letter-spacing: 0.2rem;
    font-family: monospace;
    border-color: var(--color-border);
    color: var(--color-text-primary);
    background: var(--color-white);
}

.code-input:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15);
}

.auth-2fa-card .btn-primary {
    background: var(--auth-orange);
    border: none;
    font-family: var(--auth-font-heading);
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
}

.auth-2fa-card .btn-primary:hover {
    background: var(--auth-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.backup-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-4);
}

.auth-2fa-card .alert {
    border-radius: var(--radius-md);
    border: none;
}

/* ===== Registration Closed ===== */
.auth-closed-card {
    background: var(--color-white);
    border: 1px solid var(--auth-border-dark);
    border-radius: 4px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 500px;
    width: 100%;
    text-align: center;
    padding: var(--space-10);
    transition: all var(--transition-base);
}

.auth-closed-icon {
    font-size: 4rem;
    color: var(--color-warning);
    margin-bottom: var(--space-4);
}

.auth-closed-title {
    font-family: var(--auth-font-heading);
    font-weight: 700;
    font-size: var(--font-size-xl);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
}

.auth-closed-subtitle {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    margin-bottom: var(--space-6);
    line-height: 1.6;
}

.auth-closed-card .btn-primary {
    background: var(--auth-orange);
    border: none;
    padding: var(--space-3) var(--space-6);
    font-family: var(--auth-font-heading);
    font-weight: 600;
    border-radius: 4px;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 14px rgba(255, 107, 0, 0.3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    color: white;
}

.auth-closed-card .btn-primary:hover {
    background: var(--auth-orange-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
    color: white;
}

.auth-closed-login-link {
    display: block;
    margin-top: var(--space-4);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.auth-closed-login-link a {
    color: var(--auth-orange);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
}

.auth-closed-login-link a:hover {
    text-decoration: underline;
}

/* ===== Dark Mode Overrides ===== */
[data-theme="dark"] body {
    background: var(--auth-navy-dark);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(255, 107, 0, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(100, 255, 218, 0.02) 0%, transparent 50%);
}

[data-theme="dark"] .auth-card {
    background: var(--auth-navy);
    border-color: var(--auth-border-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .auth-form-section {
    background: var(--auth-navy);
}

[data-theme="dark"] .auth-form-section h3 {
    color: var(--auth-heading-light);
}

[data-theme="dark"] .auth-form-section > p {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-form-section .form-label {
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-form-section .form-control {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-form-section .form-control::placeholder {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-form-section .form-select {
    background-color: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-form-section .input-group-text {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-2fa-card {
    background: var(--auth-navy);
    border-color: var(--auth-border-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .auth-2fa-title {
    color: var(--auth-heading-light);
}

[data-theme="dark"] .auth-2fa-subtitle {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .code-input {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-closed-card {
    background: var(--auth-navy);
    border-color: var(--auth-border-dark);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .auth-closed-title {
    color: var(--auth-heading-light);
}

[data-theme="dark"] .auth-closed-subtitle {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-theme-toggle {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
}

[data-theme="dark"] .auth-theme-toggle i {
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-footer-links {
    border-top-color: var(--auth-border-dark);
}

[data-theme="dark"] .auth-footer-links a {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .section-label {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .checkbox-item {
    border-color: var(--auth-border-dark);
}

[data-theme="dark"] .checkbox-label {
    color: var(--auth-text-light);
}

[data-theme="dark"] .auth-notice-card {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
}

[data-theme="dark"] .auth-notice-card small {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .terms-checkbox {
    background: var(--auth-navy-light);
    border-color: var(--auth-border-dark);
}

[data-theme="dark"] .terms-checkbox label {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .password-requirements {
    background: var(--auth-navy-light);
}

[data-theme="dark"] .password-requirements-title {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-divider {
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-divider::before,
[data-theme="dark"] .auth-divider::after {
    background: var(--auth-border-dark);
}

[data-theme="dark"] .step-number {
    background: var(--auth-navy-light);
    color: var(--auth-text-muted);
}

[data-theme="dark"] .step-connector {
    background: var(--auth-border-dark);
}

[data-theme="dark"] .optional-badge {
    background: var(--auth-navy-light);
    color: var(--auth-text-muted);
}

[data-theme="dark"] .auth-org-badge {
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}
