:root {
    --gold: #fab216;
    --gold-hover: #e39d0c;
    --bg-light: #f4f6f9;
    --bg-dark: #121212;
    --card-bg-light: rgba(255, 255, 255, 0.85);
    --card-bg-dark: rgba(30, 30, 30, 0.85);
    --border-light: rgba(255, 255, 255, 0.5);
    --border-dark: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-light);
    /* Subtle geometric background or gradient */
    background-image: linear-gradient(135deg, #f4f6f9 0%, #e0e6ed 100%);
    transition: background 0.3s ease;
    overflow-x: hidden;
}

[data-bs-theme="dark"] body {
    background-color: var(--bg-dark);
    background-image: linear-gradient(135deg, #121212 0%, #1e1e1e 100%);
}

/* --- GLASSMORPHISM CARD --- */
.premium-glass {
    background: var(--card-bg-light);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    transition: all 0.3s ease;
}

[data-bs-theme="dark"] .premium-glass {
    background: var(--card-bg-dark);
    border: 1px solid var(--border-dark);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.3) !important;
}

/* --- LOGO --- */
.login-logo {
    max-height: 55px;
    transition: transform 0.3s ease;
}

[data-bs-theme="dark"] .login-logo {
    /* Optional: If the original logo has dark text, you might want to invert certain parts.
       Assuming it has #fab216, we don't invert the whole thing, but maybe adjust brightness if necessary.
       For now, we leave it as is, or use drop-shadow for contrast. */
    filter: drop-shadow(0px 0px 4px rgba(255, 255, 255, 0.1));
}

/* --- FORM CONTROLS --- */
.premium-input {
    border-radius: 12px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid #ced4da;
    transition: all 0.2s;
}

[data-bs-theme="dark"] .premium-input {
    background-color: rgba(40, 40, 40, 0.9);
    border-color: #444;
    color: #e9ecef;
}
[data-bs-theme="dark"] .premium-input:focus {
    background-color: #2a2a2a;
    color: #fff;
}

.premium-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.25rem rgba(250, 178, 22, 0.25);
}

.form-floating label {
    font-size: 0.95rem;
}

/* --- PASSWORD EYE TOGGLE --- */
.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: opacity 0.2s;
}
.password-toggle:hover {
    opacity: 0.7;
}

/* --- CHECKBOX & LINKS --- */
.custom-checkbox:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}

.gold-link {
    color: var(--gold-hover);
    transition: color 0.2s;
}
.gold-link:hover {
    color: var(--gold);
    text-decoration: underline !important;
}

/* --- BUTTON FOCUS --- */
.btn-gold {
    background-color: var(--gold);
    color: #000;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-gold:hover, .btn-gold:focus, .btn-gold:active {
    background-color: var(--gold-hover);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(250, 178, 22, 0.3);
}

[data-bs-theme="dark"] .btn-gold {
    box-shadow: 0 4px 10px rgba(250, 178, 22, 0.2);
}

/* --- THEME TOGGLE (Top Right) --- */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg-light);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    color: #333;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}

[data-bs-theme="dark"] .theme-toggle {
    background: var(--card-bg-dark);
    border-color: var(--border-dark);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
