/* TheOrbitPay Vintage Executive Luxury Auth Styles (Light & Dark Mode) */
:root,
[data-bs-theme="dark"] {
    --gold-primary: #D4AF37;
    --gold-light: #F5D77F;
    --gold-dark: #996515;
    --gold-brass: #C5A059;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #AA771C 50%, #F5D77F 100%);
    --gold-border: rgba(212, 175, 55, 0.3);
    
    --obsidian-bg: #080C14;
    --midnight-navy: #0D1527;
    --velvet-card: rgba(17, 28, 48, 0.92);
    --auth-text-primary: #FFFFFF;
    --auth-text-muted: #94A3B8;
    --auth-input-bg: rgba(8, 12, 20, 0.75);
    --auth-input-color: #FFFFFF;
}

[data-bs-theme="light"] {
    --gold-primary: #B8860B;
    --gold-light: #D4AF37;
    --gold-dark: #8B6508;
    --gold-brass: #8B6508;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    --gold-border: rgba(184, 134, 11, 0.25);
    
    --obsidian-bg: #F3F5FA;
    --midnight-navy: #FFFFFF;
    --velvet-card: rgba(255, 255, 255, 0.95);
    --auth-text-primary: #0F172A;
    --auth-text-muted: #64748B;
    --auth-input-bg: #FFFFFF;
    --auth-input-color: #0F172A;
}

body.auth-page {
    background-color: var(--obsidian-bg) !important;
    background-image: 
        radial-gradient(circle at 20% 25%, rgba(212, 175, 55, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 80% 75%, rgba(16, 185, 129, 0.06) 0%, transparent 45%) !important;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

[data-bs-theme="light"] body.auth-page {
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 40%) !important;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

/* Floating Auth Theme Switcher */
.auth-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--velvet-card);
    border: 1px solid var(--gold-border);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-theme-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--gold-primary);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.login-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.login-card {
    background: var(--velvet-card);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid var(--gold-border);
    border-radius: 26px;
    padding: 44px 38px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.12), inset 0 0 20px rgba(212, 175, 55, 0.04);
    animation: fadeInScale 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

[data-bs-theme="light"] .login-card {
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 0 20px rgba(184, 134, 11, 0.1) !important;
}

.login-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 45%, rgba(245, 215, 127, 0.08) 50%, transparent 55%);
    animation: authSheen 7s infinite ease-in-out;
    pointer-events: none;
}

@keyframes authSheen {
    0% { transform: translateX(-100%) rotate(25deg); opacity: 0; }
    30% { opacity: 0.5; }
    60% { opacity: 0.5; }
    100% { transform: translateX(200%) rotate(25deg); opacity: 0; }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.94) translateY(24px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.auth-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--auth-text-primary);
    letter-spacing: 1.5px;
}

.auth-label {
    color: var(--gold-brass);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
    font-family: 'Cinzel', serif;
}

.auth-input {
    background-color: #FFFFFF !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    border-radius: 14px !important;
    color: #000000 !important;
    padding: 13px 16px 13px 44px !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
}

[data-bs-theme="light"] .auth-input {
    border-color: rgba(212, 175, 55, 0.35) !important;
}

.auth-input::placeholder {
    color: #64748B !important;
    opacity: 0.8 !important;
}

.auth-input:focus {
    border-color: var(--gold-primary) !important;
    box-shadow: 0 0 0 3.5px rgba(212, 175, 55, 0.35) !important;
    background-color: #FFFFFF !important;
    color: #000000 !important;
    outline: none !important;
}

.form-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-primary);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.auth-input:focus + .form-icon,
.position-relative:focus-within .form-icon {
    color: var(--gold-light);
    filter: drop-shadow(0 0 6px rgba(212, 175, 55, 0.5));
}

.btn-auth {
    background: var(--gold-gradient);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 15px;
    color: #080C14;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Cinzel', serif;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(212, 175, 55, 0.55);
    filter: brightness(1.08);
    color: #080C14;
}

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

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-brass);
    opacity: 0.7;
    cursor: pointer;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    opacity: 1;
    color: var(--gold-light);
    transform: translateY(-50%) scale(1.1);
}

.auth-loader {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(8, 12, 20, 0.3);
    border-radius: 50%;
    border-top-color: #080C14;
    display: none;
    animation: spin 0.8s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-auth:disabled .button-text { display: none; }
.btn-auth:disabled .auth-loader { display: block; }