/* ==========================================================================
   PAGE DE CONNEXION WORDPRESS - MINIMALISME RADICAL (NOIR & BLANC)
   ========================================================================== */

/* 1. Fond de la page et réinitialisation globale */
body.login {
    background: #ffffff !important;
    color: #000000 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Logo personnalisé */
.login h1 a {
    background-image: url(../img/logo-back-office.svg) !important;
    background-size: contain !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    width: 50px !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    margin: 30px auto 30px !important;
    text-indent: -9999px !important;
    overflow: hidden !important;
    display: block !important;
}

/* 3. Le Formulaire (Version ultra-light, sans cadre ni ombres) */
.login form {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 20px 0 !important; /* On retire les paddings latéraux inutiles sans cadre */
}

/* Intitulés des champs (Identifiant / Mot de passe) */
.login label {
    color: #000000 !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 1px;
}

/* 4. Champs de saisie de texte */
.login input[type="text"],
.login input[type="password"] {
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important; /* Angles vifs */
    box-shadow: none !important;
    color: #000000 !important;
    padding: 12px !important;
    margin-top: 8px !important;
    margin-bottom: 20px !important;
    transition: border-color 0.2s ease;
}

/* Focus sur les champs */
.login input[type="text"]:focus,
.login input[type="password"]:focus {
    border-color: #000000 !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Icône de l'œil (Afficher le mot de passe) en noir et blanc */
.login .wp-hide-pw .dashicons {
    color: #000000 !important;
}

/* 5. Case "Se souvenir de moi" */
.login .forgetmenot {
    float: none !important;
    margin-bottom: 25px !important;
    display: flex;
    align-items: center;
}

.login input[type="checkbox"] {
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    margin-right: 8px !important;
}

.login input[type="checkbox"]:checked::before {
    content: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%23000000' d='M14.8 5.4L13.4 4 8 9.4 5.6 7 4.2 8.4l3.8 3.8z'/></svg>") !important;
    margin: -3px 0 0 -1px !important;
}

/* 6. Bouton "Se connecter" (Recentré et pleine largeur pour la sobriété) */
.login .submit {
    float: none !important;
    clear: both;
    padding-top: 10px;
}

.login .button-primary {
    display: block !important;
    width: 100% !important; /* Prend toute la largeur pour s'aligner proprement */
    height: auto !important;
    background: #000000 !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    color: #ffffff !important;
    text-shadow: none !important;
    box-shadow: none !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    padding: 12px 20px !important;
    line-height: normal !important;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

/* Effet survol bouton */
.login .button-primary:hover,
.login .button-primary:focus {
    background: #ffffff !important;
    color: #000000 !important;
    border-color: #000000 !important;
}

/* 7. Liens du bas (Mot de passe oublié / Retour au site) */
.login #nav, 
.login #backtoblog {
    padding: 10px 0 0 !important;
    text-align: center !important; /* Centré pour aller avec le reste */
    font-size: 12px !important;
}

.login #nav a,
.login #backtoblog a {
    color: #666666 !important;
    transition: color 0.2s ease;
}

.login #nav a:hover,
.login #backtoblog a:hover {
    color: #000000 !important;
}

/* 8. Suppression des éléments superflus (Ligne du bas et Sélecteur de langue) */
.login #language-switcher,
.privacy-policy-page-link {
    display: none !important;
}

/* Messages d'erreur ou d'info */
.login .message,
.login #login_error {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    color: #000000 !important;
    text-align: center;
}
/* 9. Correction du fond bleu lié au remplissage automatique (Autofill) */
.login input[type="text"]:-webkit-autofill,
.login input[type="text"]:-webkit-autofill:hover, 
.login input[type="text"]:-webkit-autofill:focus,
.login input[type="password"]:-webkit-autofill,
.login input[type="password"]:-webkit-autofill:hover,
.login input[type="password"]:-webkit-autofill:focus {
    -webkit-text-fill-color: #000000 !important;
    /* Astuce : on utilise une ombre interne blanche infinie pour masquer le bleu du navigateur */
    box-shadow: 0 0 0px 1000px #ffffff inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Sécurité pour forcer le fond blanc lors de la saisie */
.login input[type="text"],
.login input[type="password"] {
    background-color: #ffffff !important;
}

/* ==========================================================================
   10. NETTOYAGE DE LA PAGE VÉRIFICATION DE L'E-MAIL D'ADMINISTRATION
   ========================================================================== */

/* Titre principal */
.login h2 {
    color: #000000 !important;
    font-weight: 600 !important;
    letter-spacing: -0.5px;
    margin-bottom: 20px !important;
}

/* Paragraphes et textes informatifs */
.login .admin-email__actions-primary,
.login .admin-email__actions-secondary {
    font-size: 14px !important;
    color: #000000 !important;
}

/* Le bouton secondaire "Mettre à jour" (qui s'affichait en bleu/blanc d'origine) */
.login .admin-email__actions a.button {
    background: #ffffff !important;
    border: 1px solid #000000 !important;
    border-radius: 0 !important;
    color: #000000 !important;
    text-shadow: none !important;
    box-shadow: none !important;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    padding: 10px 20px !important;
    height: auto !important;
    line-height: normal !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.login .admin-email__actions a.button:hover {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Le bouton principal "L'e-mail est correct" (Ajustement de sa structure interne) */
.login .admin-email__actions .button-primary {
    width: 100% !important;
    text-align: center !important;
    margin: 15px 0 !important;
}

/* Liens secondaires ("Pourquoi est-ce important ?", "Me le rappeler ultérieurement") */
.login .admin-email__details a,
.login .admin-email__actions-secondary a {
    color: #666666 !important;
    text-decoration: underline !important;
    transition: color 0.2s ease;
}

.login .admin-email__details a:hover,
.login .admin-email__actions-secondary a:hover {
    color: #000000 !important;
}

/* Ajustement des espaces pour garder le bloc aéré */
.login .admin-email__actions {
    margin-top: 30px !important;
}