/**
 * Login Page Theme Overlay - Enhanced
 * Modern typography and styling while preserving retro BBS effects
 */

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

/* === Updated Color Variables (monochrome theme) === */
:root {
    --primary: #ffffff !important;
    --primary-dim: #a1a1a1 !important;
    --primary-dark: #666666 !important;
    --primary-darker: #333333 !important;
    --bg: #000000 !important;
    --glow: rgba(255, 255, 255, 0.25) !important;
}

/* === Modern Typography === */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Logo Styling - Keep Haywire effect but white === */
.text-logo-main {
    color: #ffffff !important;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.2),
        0 0 3px rgba(255, 255, 255, 0.6) !important;
    letter-spacing: 8px;
}

/* Haywire glitch - keep colorful but subtle */
.text-logo.haywire .text-logo-main {
    animation: glitch-color 0.15s linear infinite, glitch-shake 0.2s linear infinite !important;
}

/* === Login Box - Modern Card Style === */
.login-box {
    background: rgba(10, 10, 10, 0.85) !important;
    border: 1px solid #222 !important;
    border-radius: 12px !important;
    padding: 32px !important;
    backdrop-filter: blur(12px);
}

.box-header {
    border-bottom: 1px solid #222 !important;
    padding-bottom: 16px !important;
    margin-bottom: 28px !important;
    font-family: 'Inter', sans-serif;
    font-size: 14px !important;
    font-weight: 500;
    color: #666 !important;
    letter-spacing: 0.5px;
}

/* === Form Elements === */
.form-row label {
    font-family: 'Inter', sans-serif;
    font-size: 13px !important;
    font-weight: 500;
    color: #a1a1a1 !important;
    margin-bottom: 8px !important;
    letter-spacing: 0;
}

.form-row input {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 400;
    background: #111 !important;
    border: 1px solid #333 !important;
    border-radius: 8px !important;
    padding: 14px 16px !important;
    color: #ededed !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.form-row input:focus {
    border-color: #fff !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08) !important;
    outline: none !important;
}

.form-row input::placeholder {
    color: #444 !important;
    font-weight: 400;
}

/* === Login Button - Modern Style === */
.btn {
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 24px !important;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin-top: 8px !important;
}

.btn:hover {
    opacity: 0.9 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    transform: translateY(-1px);
}

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

.btn:disabled {
    background: #333 !important;
    color: #666 !important;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn:disabled:hover {
    background: #333 !important;
    transform: none;
}

/* === Boot Terminal - Modernized === */
.boot-terminal {
    background: rgba(0, 0, 0, 0.6) !important;
    border: 1px solid #222 !important;
    border-radius: 8px !important;
    padding: 16px 18px !important;
    margin: 20px 0 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px !important;
}

.boot-line {
    color: #666 !important;
    font-family: 'JetBrains Mono', monospace;
}

.boot-line .ok {
    color: #22c55e !important;
}

.boot-line .warn {
    color: #f59e0b !important;
}

.boot-line .fail {
    color: #ef4444 !important;
}

.boot-line .highlight {
    color: #fff !important;
}

/* === Error Messages === */
.error {
    font-family: 'Inter', sans-serif !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    border-radius: 8px !important;
    color: #ef4444 !important;
    padding: 12px 14px !important;
    font-size: 13px !important;
}

/* === Footer === */
.footer {
    border-top: 1px solid #222 !important;
    margin-top: 28px !important;
    padding-top: 20px !important;
}

.footer-brand {
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
    letter-spacing: 3px !important;
    color: #444 !important;
    font-weight: 500;
}

.secure-status {
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
    color: #666 !important;
    letter-spacing: 0 !important;
}

.status-dot {
    background: #22c55e !important;
    box-shadow: 0 0 6px #22c55e, 0 0 12px rgba(34, 197, 94, 0.4) !important;
}

.theme-toggle {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    border: 1px solid #333 !important;
    color: #666 !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
}

.theme-toggle:hover {
    border-color: #fff !important;
    color: #fff !important;
}

/* === Divider === */
.divider {
    color: #444 !important;
    font-family: 'Inter', sans-serif;
    font-size: 11px !important;
}

.divider::before,
.divider::after {
    border-bottom: 1px solid #222 !important;
}

/* === SSO Button === */
.btn-sso {
    background: transparent !important;
    border: 1px solid #333 !important;
    color: #a1a1a1 !important;
}

.btn-sso:hover {
    background: #111 !important;
    border-color: #444 !important;
    color: #fff !important;
    box-shadow: none !important;
}

/* === Cursor === */
.cursor {
    background: #fff !important;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #444;
}

/* === Container === */
.container {
    max-width: 440px !important;
}

/* === Mobile Overrides === */
@media (max-width: 700px) {
    .login-box {
        padding: 24px !important;
        border-radius: 10px !important;
    }
    
    .box-header {
        font-size: 13px !important;
    }
    
    .form-row input {
        font-size: 16px !important;
        padding: 12px 14px !important;
    }
    
    .btn {
        padding: 12px 20px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .login-box {
        padding: 20px !important;
        border-radius: 8px !important;
    }
    
    .text-logo-main {
        letter-spacing: 4px !important;
    }
}

/* === Preserve CRT/Scanline Effects === */
body::before,
body::after {
    /* Keep existing scanline animations */
}

/* === ANSI Logo Colors (if shown) === */
.ansi-logo {
    color: #fff !important;
}

.ansi-logo .w { color: #ffffff !important; }
.ansi-logo .b { color: #e0e0e0 !important; }
.ansi-logo .h { color: #c0c0c0 !important; }
.ansi-logo .m { color: #a0a0a0 !important; }
.ansi-logo .l { color: #808080 !important; }
.ansi-logo .d { color: #606060 !important; }
.ansi-logo .x { color: #404040 !important; }
