/* ============================================
   SENIA ELECTRIQUE — LOGIN SPLIT LAYOUT
   ============================================ */

/* Reset page */
html, body.login {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.login {
    background: #111418 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    display: flex;
    align-items: stretch;
}

/* ---- PARTIE GAUCHE (image + texte) ---- */
/* On crée le panneau gauche via un pseudo-element sur body */
body.login::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 55%;
    height: 100%;
    /* 🔴 REMPLACEZ cette URL par votre image Freepik téléchargée */
    background: url('https://seniadz.net/wp-content/uploads/2025/05/factory-1.jpg') center/cover no-repeat;
    z-index: 0;
}

/* Overlay sombre sur l'image */
body.login::after {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.65) 100%
    );
    z-index: 1;
}

/* Texte "Welcome Back" affiché à gauche */
body.login #login::before {
    content: 'Welcome\ABack';
    white-space: pre;
    position: fixed;
    bottom: 180px;
    left: 4%;
    width: 48%;
    color: white;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    z-index: 2;
    text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}

/* ---- LOGO (en haut à gauche) ---- */
#login h1 {
    position: fixed;
    top: 24px;
    left: 28px;
    z-index: 1000000;
    width: auto;
}

#login h1 a {
    /* 🔴 Remplacez par votre logo blanc */
    background-image: url('https://seniadz.net/wp-content/uploads/2019/04/logo_2018.jpg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-color: transparent !important;
    width: 160px !important;
    height: 48px !important;
    display: block;
}

/* ---- FORMULAIRE (panneau droit) ---- */
#login {
    position: relative;
    z-index: 5;
    margin: 0 0 0 55% !important;
    width: 45% !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #111418;
}

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

/* Titre "Sign in" */
#login h1 + p,
.login-title-custom {
    display: none;
}

/* Remplace le titre du form */
#loginform::before {
    content: 'Sign in';
    display: block;
    color: white;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
}

/* Labels */
#loginform label,
#loginform .login-username > label,
#loginform .login-password > label {
    color: rgba(255,255,255,0.55) !important;
    font-size: 11px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: block;
    margin-bottom: 5px;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"] {
    background: rgba(255,255,255,0.06) !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-shadow: none !important;
    transition: border 0.2s, background 0.2s;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus {
    border-color: #e65c00 !important;
    background: rgba(230,92,0,0.08) !important;
    box-shadow: 0 0 0 3px rgba(230,92,0,0.2) !important;
    outline: none !important;
    color: #fff !important;
}

/* Checkbox */
.forgetmenot label {
    color: rgba(255,255,255,0.45) !important;
    font-size: 13px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    font-weight: 400 !important;
}

input[type="checkbox"] {
    accent-color: #e65c00;
}

/* ---- BOUTON ---- */
#wp-submit {
    background: #e65c00 !important;
    border: none !important;
    border-radius: 6px !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 11px 20px !important;
    width: 100% !important;
    box-shadow: 0 4px 16px rgba(230,92,0,0.4) !important;
    text-shadow: none !important;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

#wp-submit:hover {
    background: #cc5200 !important;
    transform: translateY(-1px);
}

/* ---- LIENS ---- */
#nav a,
#backtoblog a {
    color: rgba(255,255,255,0.4) !important;
    font-size: 12px;
    text-decoration: none;
}

#nav a:hover,
#backtoblog a:hover {
    color: #e65c00 !important;
}

/* ---- POLITIQUE DE CONFIDENTIALITÉ ---- */
.privacy-policy-page-link {
    color: rgba(255,255,255,0.25) !important;
    font-size: 11px;
    text-align: center;
    margin-top: 1rem !important;
}
.privacy-policy-page-link a {
    color: rgba(255,255,255,0.45) !important;
}

/* ---- ERREURS ---- */
#login_error {
    background: rgba(230,92,0,0.1) !important;
    border-left: 4px solid #e65c00 !important;
    color: #ffb380 !important;
    border-radius: 6px !important;
    margin-bottom: 1rem;
}