/* Project Centurion: LAB ID Theme (Global Controls v7.0) */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=League+Spartan:wght@700;800&display=swap');

:root {
    /* DARK MODE DEFAULTS */
    --bg-color: #101010;
    --card-bg: #1a1a1a;
    --text-header: #ffffff;
    --text-body: #ffffff;
    --text-mute: #888888;
    --border-color: #333333;
    --input-bg: #0a0a0a;
    --accent-primary: #ffd420; /* Gold */
    --accent-focus: #abc868;   /* Green */
}

/* Manual Light Mode Class (Triggered by JS) */
body.light-mode-active {
    --bg-color: #eeeeee;
    --card-bg: #ffffff;
    --text-header: #381a51;
    --text-body: #101010;
    --text-mute: #666666;
    --border-color: #d0d0d0;
    --input-bg: #f9f9f9;
    --accent-primary: #381a51;
    --accent-focus: #ffd420;
}

/* PREFERENCE AUTO-DETECT (Only if no manual override exists) */
@media (prefers-color-scheme: light) {
    body:not(.dark-mode-active) {
        --bg-color: #eeeeee;
        --card-bg: #ffffff;
        --text-header: #381a51;
        --text-body: #101010;
        --text-mute: #666666;
        --border-color: #d0d0d0;
        --input-bg: #f9f9f9;
        --accent-primary: #381a51;
        --accent-focus: #ffd420;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-body);
    font-family: 'Lato', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s;
}

.centurion-wrapper {
    display: flex; flex-direction: column; align-items: center; gap: 40px;
    width: 100%; max-width: 380px;
}

.login-card {
    width: 100%; background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    position: relative; box-sizing: border-box;
}

/* Top DNA Bar */
.login-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, #381a51, #abc868, #ffd420);
}

/* --- NEW CONTROLS HEADER --- */
.controls-header {
    display: flex; justify-content: flex-end; gap: 15px;
    margin-bottom: 20px;
}

.control-btn {
    background: transparent; border: none; cursor: pointer;
    color: var(--text-mute); padding: 0;
    display: flex; align-items: center;
    transition: color 0.2s;
}
.control-btn:hover { color: var(--accent-primary); }

.icon { width: 18px; height: 18px; }

/* Icon Logic: Show Sun in Dark Mode, Moon in Light Mode */
.sun { display: none; }
.moon { display: block; }

body.light-mode-active .sun { display: block; }
body.light-mode-active .moon { display: none; }

/* Auto-Detect Logic for Icons */
@media (prefers-color-scheme: light) {
    body:not(.dark-mode-active) .sun { display: block; }
    body:not(.dark-mode-active) .moon { display: none; }
}

.lang-toggle { font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 12px; }

/* REST OF STYLES (Header, Inputs, etc) */
.lab-id-header {
    font-family: 'League Spartan', sans-serif; font-weight: 800; font-size: 42px;
    text-transform: uppercase; letter-spacing: -1px; margin: 0 0 30px 0;
    color: var(--text-header); text-align: center;
}

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

label {
    display: block; font-family: 'League Spartan', sans-serif; font-size: 11px;
    text-transform: uppercase; letter-spacing: 1px; color: var(--text-mute);
    margin-bottom: 8px; font-weight: 700;
}

.lyons-input {
    width: 100%; background: var(--input-bg); border: 1px solid var(--border-color);
    padding: 16px; color: var(--text-body); font-family: 'Lato', sans-serif;
    font-size: 16px; box-sizing: border-box; transition: border-color 0.2s;
    border-radius: 0;
}
.lyons-input:focus { outline: none; border-color: var(--accent-focus); }

.btn-submit {
    width: 100%; padding: 18px; background: var(--accent-primary);
    color: #fff; font-family: 'League Spartan', sans-serif; font-weight: 700;
    text-transform: uppercase; letter-spacing: 2px; border: none;
    cursor: pointer; margin-top: 10px; transition: opacity 0.2s; border-radius: 0;
}
body:not(.light-mode-active) .btn-submit { color: #000; } /* Dark mode = black text */

.btn-submit:hover { opacity: 0.9; }

.bio-link {
    display: block; text-align: center; margin-top: 25px; font-size: 12px;
    color: var(--text-mute); text-decoration: none; font-weight: 700;
}
.bio-link:hover { color: var(--text-body); }

.security-note {
    text-align: center; margin-top: 30px; font-size: 10px; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: 0.5px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.lock-icon { width: 10px; height: 10px; opacity: 0.5; }

.logo-footer { text-align: center; opacity: 0.8; transition: opacity 0.3s; }
.logo-footer:hover { opacity: 1; }
.logo-img { max-width: 180px; height: auto; display: none; }

/* Logo Switching Logic */
.logo-dark-mode { display: block; }
.logo-light-mode { display: none; }

body.light-mode-active .logo-dark-mode { display: none; }
body.light-mode-active .logo-light-mode { display: block; }

@media (prefers-color-scheme: light) {
    body:not(.dark-mode-active) .logo-dark-mode { display: none; }
    body:not(.dark-mode-active) .logo-light-mode { display: block; }
}