/* Message de déconnexion - style simplifiée sans boîte ni section */
#login > .message,
.message,
#login_error {
    border-left: 4px solid #4AA0D5 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px !important;
    position: absolute;
    bottom: -90px; /* Augmenté pour créer plus d'espace */
    left: 0;
    width: auto;
    margin: 0 !important; /* Suppression de toutes les marges pour éviter les problèmes */
}/* Style de base pour la page de connexion */
body.login {
    background-color: #f7f9ff;
    font-family: 'Montserrat', sans-serif;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
}

/* Conteneur principal */
#login {
    width: 80% !important;
    max-width: 1200px;
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

/* Message de déconnexion - style simplifiée sans boîte ni section */
#login > .message,
.message,
#login_error {
    border-left: 4px solid #4AA0D5 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 12px !important;
    position: absolute;
    bottom: -90px; /* Augmenté pour créer plus d'espace */
    left: 0;
    width: auto;
    margin: 0 !important; /* Suppression de toutes les marges pour éviter les problèmes */
}

/* Suppression complète des éléments non désirés */
.login .message::before,
.login #login_error::before,
#login::before,
body.login #login::after,
body.login div::before,
body.login p::before {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    border: none !important;
    background: none !important;
}

/* Suppression spécifique de la barre bleue verticale */
body.login .message + *,
body.login .message ~ div,
body.login #login > *:not(.login-container):not(.message):not(#loginform),
body.login #login > div:empty {
    display: none !important;
}

/* Ciblage direct de la barre bleue */
body.login #login > div[class^="message-"],
body.login #login > div.wp-login-message,
body.login #login > div:empty,
body.login #login > div:not([class]),
body.login #login > div.vertical-bar {
    display: none !important;
}

/* Masquer les éléments par défaut de WordPress */
.wp-login-logo,
#backtoblog, 
.privacy-policy-page-link, 
.language-switcher,
#nav {
    display: none !important;
}

/* Boîte de connexion principale */
.login-container {
    display: flex;
    min-height: 550px;
}

/* Colonne gauche - formulaire */
.login-left {
    flex: 0 0 40%;
    padding: 40px;
    box-sizing: border-box;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Colonne droite - image */
.login-right {
    flex: 0 0 60%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-right-image {
    width: 90%;
    height: 90%;
    background-image: url('/wp-content/themes/hello-theme-child-master/connect_image.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    margin-left: 15px;
}

/* Logo YouTribe */
.login-logo {
    text-align: left;
    margin-bottom: 20px;
}

.login-logo img {
    height: 70px;
    width: auto;
}

/* Titres */
.login-title {
    font-size: 28px;
    color: #0a1f44;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 18px;
    color: #0a1f44;
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Texte descriptif */
.login-description {
    color: #7c8db0;
    margin-bottom: 20px;
    font-size: 14px;
}

.login-description p {
    margin: 3px 0;
}

/* Bouton YouTribe */
.youtribe-login-btn {
    background-color: #4AA0D5;
    color: white !important;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
    width: 90%;
    text-align: center;
    margin: 0 auto 25px;
    transition: background-color 0.3s;
    text-decoration: none;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

.youtribe-login-btn:hover {
    background-color: #3889bc;
    color: white !important;
}

/* Lien pour contact */
.contact-link {
    color: #4AA0D5;
    text-decoration: none;
    font-size: 14px;
}

.contact-link:hover {
    text-decoration: underline;
}

/* Séparateur */
.login-separator {
    display: flex;
    align-items: center;
    margin: 30px 0;
    color: #7c8db0;
    font-size: 14px;
    text-align: center;
}

.login-separator::before,
.login-separator::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #e1e5ed;
}

.login-separator::before {
    margin-right: 15px;
}

.login-separator::after {
    margin-left: 15px;
}

/* Formulaire standard WordPress */
#loginform {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    border: none;
}

#loginform label {
    color: #0a1f44;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

#loginform .input {
    border: 1px solid #e1e5ed;
    border-radius: 5px;
    padding: 12px;
    font-size: 14px;
    width: 100%;
    margin-bottom: 15px;
    box-sizing: border-box;
}

#loginform .input:focus {
    border-color: #4AA0D5;
    box-shadow: 0 0 0 1px #4AA0D5;
    outline: none;
}

.wp-pwd {
    position: relative;
}

/* Lien mot de passe oublié */
.password-label-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.wp-login-lost-password {
    color: #4AA0D5;
    text-decoration: none;
    font-size: 14px;
}

.wp-login-lost-password:hover {
    text-decoration: underline;
}

/* Case à cocher "Se souvenir de moi" */
.forgetmenot {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.forgetmenot input[type="checkbox"] {
    margin-right: 10px;
}

.forgetmenot label {
    font-size: 14px;
}

/* Bouton de soumission */
#wp-submit {
    background-color: #4AA0D5;
    border: none;
    border-radius: 5px;
    padding: 8px 15px;
    font-size: 15px;
    cursor: pointer;
    max-width: 150px;
    margin: 0 auto;
    display: block;
    color: white;
    transition: background-color 0.3s;
    height: auto;
    text-shadow: none;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.2;
}

#wp-submit:hover {
    background-color: #3889bc;
}

/* Styles pour le bouton Cloudron */
.openid-connect-login-button {
    margin: 0 !important;
    text-align: center !important;
    width: 100%;
    display: flex;
    justify-content: center;
}

.openid-connect-login-button a.button {
    background-color: #4AA0D5;
    border: none;
    border-radius: 5px;
    padding: 12px 20px;
    font-size: 16px;
    display: block;
    width: 90%;
    text-align: center;
    color: white !important;
    transition: background-color 0.3s;
    height: auto;
    text-shadow: none;
    box-shadow: none;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.openid-connect-login-button a.button:hover {
    background-color: #3889bc;
    color: white !important;
}

/* Styles responsive */
@media (max-width: 860px) {
    body.login {
        height: auto;
        overflow: auto;
        padding: 20px 0;
    }
    
    #login {
        width: 95%;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-right {
        display: none;
    }
}

/* Ajout d'une police Montserrat via Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');