/**
 * UNIFIED TERMINAL DESIGN V4
 */

:root {
    --neon-green: #089981;
    --neon-red: #f23645;
    --neon-blue: #2962ff;
    --bg-deep: #0a0b10;
    --grid-color: rgba(42, 46, 57, 0.25);
    --font-terminal: 'Share Tech Mono', monospace;
}

/* --- 1. LAYOUT GLOBAL (SPLIT SCREEN) --- */
body.login {
    background-color: var(--bg-deep) !important;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px) !important;
    background-size: 35px 35px !important;
    display: flex !important;
    flex-direction: row !important;
    height: 100vh !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    font-family: var(--font-terminal) !important;
}

#login {
    display: contents !important; /* Rend le wrapper #login invisible pour le layout */
}

.terminal-split-layout {
    display: flex;
    width: 100vw;
    height: 100vh;
}

/* --- 2. CÔTÉ FORMULAIRE (GAUCHE) --- */
.terminal-form-side {
    width: 450px;
    background-color: var(--bg-deep);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 50px;
    border-right: 1px solid rgba(41, 98, 255, 0.2);
    z-index: 10;
    box-shadow: 10px 0 50px rgba(0,0,0,0.8);
    position: relative;
    flex-shrink: 0;
}

#login h1 a {
    background-image: url('https://gapandhold.com/wp-content/uploads/2026/04/fav-icon-gapandhold.svg') !important;
    background-size: contain !important;
    width: 220px !important;
    height: 60px !important;
    margin-bottom: 30px !important;
}

#loginform {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 100%;
}

.login label {
    color: #787b86 !important;
    text-transform: uppercase;
    font-size: 11px;
}

.login input[type="text"], 
.login input[type="password"] {
    background: #131722 !important;
    border: 1px solid #2a2e39 !important;
    color: var(--neon-green) !important;
    padding: 12px !important;
    margin-bottom: 20px !important;
    width: 100% !important;
}

.login input:focus { border-color: var(--neon-blue) !important; }

#wp-submit {
    background: var(--neon-green) !important;
    border: none !important;
    width: 100% !important;
    height: 50px !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(8, 153, 129, 0.3) !important;
}

/* --- EFFET HOVER (SURVOL) --- */
.login #wp-submit:hover {
    background: #09b396 !important; /* Un vert légèrement plus brillant */
    box-shadow: 0 0 25px rgba(8, 153, 129, 0.6) !important; /* Effet Néon boosté */
    transform: translateY(-2px) !important; /* Petit soulèvement */

}

/* --- EFFET ACTIVE (CLIC) --- */
.login #wp-submit:active {
    transform: translateY(1px) !important;
    box-shadow: 0 0 10px rgba(8, 153, 129, 0.8) !important;
}

/* Petit correctif pour le conteneur du bouton injecté par WP */
.login .submit {
    padding-bottom: 10px !important;
}

/* --- 3. CÔTÉ VISUEL (DROITE) --- */
.terminal-visual-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: radial-gradient(circle at center, rgba(41, 98, 255, 0.05) 0%, transparent 70%);
}

.neural-svg-integrated {
    width: 75%;
    max-width: 600px;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.5));
}

/* --- 4. COMPOSANTS TERMINAL --- */
.system-alert {
    background: #131722 !important;
    border: 1px solid #2a2e39 !important;
    border-left: 4px solid var(--neon-green) !important;
    color: #fff !important;
    font-size: 13px;
    padding: 15px !important;
}
.system-alert .sub-msg { color: #787b86; font-size: 11px; }

.login-upgrade-section {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px dashed #2a2e39;
    width: 100%;
}
.etea-label-mini { font-size: 10px; color: #444; margin-bottom: 8px; }

/* Style du bouton au repos */
.btn-upgrade-terminal {
    display: inline-block;
    padding: 12px 20px;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue) !important;
    background: transparent; /* Fond transparent par défaut */
    text-decoration: none !important;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace; /* Ajout de la police Terminal */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

/* Style au survol (hover) */
.btn-upgrade-terminal:hover {
    background: var(--neon-blue) !important; /* Le fond devient bleu néon */
    color: #ffffff !important; /* Le texte devient blanc */
    transform: translateY(-2px); /* Léger effet de soulèvement */
    box-shadow: 0 5px 15px rgba(41, 98, 255, 0.4); /* Ombre portée bleue pour l'effet "glow" */
}
.system-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0,0,0,0.8);
    color: #444;
    font-size: 10px;
    padding: 8px 20px;
    text-align: center;
    border-top: 1px solid #111;
    z-index: 100;
}
.online { color: var(--neon-green); }

#nav, #backtoblog, .language-switcher { display: none !important; }
.blink { animation: blinkAnim 1s infinite; }
@keyframes blinkAnim { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.login .privacy-policy-page-link {
    margin: 0;
}

/* --- 5. RESPONSIVE --- */
@media (max-width: 900px) {
    .terminal-visual-side { display: none !important; }
    #login, .terminal-form-side { width: 100% !important; min-width: 100% !important; padding: 40px !important; }
}