/*
 * AIACA Login Page CSS
 * Style personnalisé pour la page de connexion WordPress
 * Masque l'identité WordPress
 */

/* Fond */
body.login {
    background: #f0f2f5;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Masquer le logo WordPress — remplacé par AIACA */
#login h1 a {
    background-image: none !important;
    background-color: #1e3a5f;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#login h1 a::before {
    content: "AI";
}

/* Boîte de connexion */
#loginform,
#lostpasswordform {
    background: #fff;
    border: 1px solid #e2e6ea;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 28px !important;
}

/* Labels */
#loginform label,
#lostpasswordform label {
    font-size: 13px;
    font-weight: 600;
    color: #1e3a5f;
}

/* Inputs */
#loginform input[type="text"],
#loginform input[type="password"],
#loginform input[type="email"],
#lostpasswordform input[type="text"],
#lostpasswordform input[type="email"] {
    border: 1.5px solid #e2e6ea;
    border-radius: 7px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

#loginform input:focus,
#lostpasswordform input:focus {
    border-color: #1e3a5f;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.15);
    outline: none;
}

/* Bouton de connexion */
#loginform .button-primary,
#lostpasswordform .button-primary {
    background: #1e3a5f !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    width: 100%;
    cursor: pointer;
    transition: background 0.15s;
    box-shadow: none !important;
    text-shadow: none !important;
    height: auto !important;
}

#loginform .button-primary:hover,
#lostpasswordform .button-primary:hover {
    background: #2d5186 !important;
}

/* Lien "Mot de passe oublié" */
#nav a,
#backtoblog a {
    color: #5a6472 !important;
    font-size: 12px;
}

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

/* Masquer "Retour vers [site]" */
#backtoblog {
    display: none !important;
}

/* Messages d'erreur */
#login_error {
    border-left-color: #E24B4A;
    border-radius: 7px;
}

/* Checkbox "Se souvenir de moi" */
#loginform .forgetmenot {
    float: none;
    margin-bottom: 16px;
}

/* Footer de la page login — masquer */
.login #login_footer,
.login footer {
    display: none !important;
}

/* Titre de la page */
#login h1 {
    margin-bottom: 20px;
}

/* Sous-titre */
#login > p {
    text-align: center;
    color: #5a6472;
    font-size: 13px;
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 400px) {
    #login {
        padding: 0 16px;
    }
}