@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dim: rgba(212, 175, 55, 0.15);
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-card: #141414;
    --text: #f0ede8;
    --text-muted: #888;
    --border: rgba(212, 175, 55, 0.2);
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}


.bg-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 50%, rgba(212,175,55,0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 20%, rgba(212,175,55,0.04) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #0f0e0b 50%, #0a0a0a 100%);
    z-index: 0;
    pointer-events: none;
}

.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    animation: float-particle var(--dur) var(--delay) ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
    20% { opacity: 0.6; transform: translateY(-20px) scale(1); }
    80% { opacity: 0.2; transform: translateY(-80px) scale(0.5); }
}


.back-home {
    position: fixed;
    top: 28px;
    left: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    z-index: 100;
    transition: var(--transition);
    padding: 8px 14px;
    border-radius: 50px;
    border: 1px solid transparent;
}

.back-home:hover {
    color: var(--gold);
    border-color: var(--border);
    background: var(--gold-dim);
}


.auth-wrapper {
    min-height: 100vh;
    display: flex;
    position: relative;
    z-index: 1;
}


.brand-side {
    width: 45%;
    background:
        linear-gradient(160deg, rgba(212,175,55,0.08) 0%, transparent 50%),
        linear-gradient(to right, transparent, rgba(0,0,0,0.3));
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 60px 50px;
    position: relative;
    overflow: hidden;
}

.brand-side::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.brand-side::after {
    content: 'LUMINA';
    position: absolute;
    bottom: -60px;
    right: -40px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 200px;
    font-weight: 700;
    color: rgba(212,175,55,0.03);
    pointer-events: none;
    letter-spacing: -10px;
}

.brand-content {}

.brand-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.brand-logo span { color: var(--gold); }

.brand-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 30px;
}

.brand-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 56px;
    font-style: italic;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeSlideIn 0.6s ease forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.2s; }
.feature-item:nth-child(2) { animation-delay: 0.4s; }
.feature-item:nth-child(3) { animation-delay: 0.6s; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.feature-icon {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 12px;
    background: var(--gold-dim);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 14px;
    color: #aaa;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.brand-quote {
    font-family: 'Cormorant Garamond', serif;
    font-size: 14px;
    color: rgba(212,175,55,0.5);
    font-style: italic;
    letter-spacing: 1px;
}


.form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    background: rgba(255,255,255,0.01);
}

.form-container {
    width: 100%;
    max-width: 420px;
}


.tab-switcher {
    display: flex;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 40px;
    position: relative;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    letter-spacing: 0.3px;
}

.tab-btn.active {
    color: var(--gold);
}

.tab-indicator {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: calc(50% - 5px);
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.08));
    border-radius: 8px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.tab-indicator.right {
    left: calc(50% + 0px);
}


.form-box {
    display: none;
    animation: formAppear 0.4s ease forwards;
}

.form-box.active {
    display: block;
}

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

.form-header {
    margin-bottom: 36px;
}

.form-header h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 38px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    letter-spacing: 0.3px;
}


.input-group {
    margin-bottom: 22px;
}

.input-group label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 500;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #555;
    pointer-events: none;
    transition: var(--transition);
    flex-shrink: 0;
}

.input-wrapper:focus-within .input-icon {
    color: var(--gold);
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 14px 16px 14px 46px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 300;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.input-wrapper input::placeholder {
    color: #444;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.06);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.08);
}

.input-wrapper select option {
    background: #1a1a1a;
    color: var(--text);
}

.select-wrapper .select-arrow {
    position: absolute;
    right: 14px;
    color: #555;
    pointer-events: none;
    transition: var(--transition);
}

.select-wrapper:focus-within .select-arrow {
    color: var(--gold);
}

/* Toast styles */
.toast {
    position: fixed;
    top: -100px;
    right: 20px;
    background: var(--dark-2);
    border-left: 4px solid #ff4444;
    color: #fff;
    padding: 16px 24px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: top 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1000;
}
.toast.success { border-left-color: var(--gold); }
.toast.show { top: 20px; }

/* ── LIGHT MODE GLOBALS ── */
body.light-mode {
    --dark: #fcfbf9;
    --dark-2: #f2efe9;
    --dark-3: #e8e4db;
    --dark-card: #ffffff;
    --text: #1a1a1a;
    --text-muted: #555555;
    --border: rgba(212, 175, 55, 0.4);
    --gold-dim: rgba(212, 175, 55, 0.15);
}
body { transition: background-color 0.4s ease, color 0.4s ease; }
.particles { opacity: 0.5; transition: opacity 0.4s ease; }
body.light-mode .particles { opacity: 0.1; }
body.light-mode .bg-overlay { background: radial-gradient(circle at center, transparent 0%, rgba(252,251,249,0.9) 100%); }
body.light-mode .auth-wrapper { border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.05); }

/* Global Theme Toggle Button (Absolute Top Right) */
.global-theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--dark-2);
    border: 1px solid var(--border);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    transition: var(--transition);
    z-index: 9999;
}
.global-theme-toggle:hover { background: var(--gold-dim); color: var(--gold); border-color: var(--gold); box-shadow: 0 0 15px rgba(212,175,55,0.3); }
.global-theme-toggle .sun-icon { display: none; }
body.light-mode .global-theme-toggle .moon-icon { display: none; }
body.light-mode .global-theme-toggle .sun-icon { display: block; }

.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    margin-bottom: 0;
    width: auto;
}

.toggle-pw:hover { color: var(--gold); }


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 5px;
    background: rgba(255,255,255,0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.checkbox-label input:checked + .checkmark {
    background: var(--gold);
    border-color: var(--gold);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: #000;
    font-size: 11px;
    font-weight: 700;
}

.forgot-link {
    font-size: 13px;
    color: var(--gold);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    opacity: 0.8;
}

.forgot-link:hover { opacity: 1; }


.submit-btn {
    width: 100%;
    padding: 15px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9a227 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(212,175,55,0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.4);
}

.submit-btn:hover::before { opacity: 1; }

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


.switch-text {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 28px;
    font-weight: 300;
}

.switch-text a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.switch-text a:hover { text-decoration: underline; }


@media (max-width: 900px) {
    .brand-side { display: none; }
    .form-side { padding: 80px 24px 40px; }
}
