/****
	*
	*	@Author [Benoît Hinck]
	*	@Copyright [2007]
	*
	*	@Filename : login-style.css
	*
	*	@Revisions
	*		Le 13/01/2026 : Création
	*
	****/

/* Variables thématiques basées sur le logo et le canevas existant */
/* Palette CW3C extraite de header-style.css */
:root {
    --banner-grad-start: #004080; /* Bleu foncé */
    --banner-grad-end: #037ffa;   /* Bleu vif */
    --accent-green: #2E8B57;      /* SeaGreen (Logo) */
    --accent-red: #D22B2B;        /* Crimson (Alerte) */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --text-main: #ffffff;
    --text-dark: #004080;
}
/* Fond léger pour faire ressortir le container */
/*body {
    background: #f0f4f8; 
    margin: 0;
    padding: 0;
}

.container {
    box-sizing: border-box;
    margin: 2rem auto;
    max-width: 1100px;
    padding: 0 15px;
    width: 95%;
}
*/
/* Centre le formulaire verticalement */
.main-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px); /* Ajuste selon la taille du header */
    padding: 20px;
}

/* Cette section force le centrage absolu dans la page */
.main-login-wrapper {
    align-items: center;     /* Centrage vertical */
    box-sizing: border-box;
    display: flex;
    justify-content: center; /* Centrage horizontal */
    min-height: 80vh;        /* Prend 80% de la hauteur de l'écran */
    padding: 20px;
    width: 100%;
}

/* Boîte extérieure (Le dégradé vert du canevas) */
.arrondi_Radius_color {
    background: linear-gradient(135deg, var(--banner-grad-start), var(--banner-grad-end));
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 64, 128, 0.2);
    box-sizing: border-box;
    max-width: 480px;
    overflow: hidden;
    padding: 40px;
    position: relative;
    width: 100%;
}

/* Effet de brillance décoratif (Optionnel) */
.arrondi_Radius_color::before {
    animation: shine 3s infinite linear;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    content: "";
    height: 200%;
    left: -50%;
    pointer-events: none;
    position: absolute;
    top: -50%;
    width: 200%;
}

/* Boîte de formulaire Blanche (Glassmorphism léger) */
.arrondi_Radius_login {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    padding: 35px;
    text-align: center;
}

.form-head {
    border-bottom: 3px solid var(--banner-grad-end);
    color: var(--text-dark);
    display: block;
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 25px;
    padding-bottom: 10px;
}

/* Champs de saisie */
input[type="text"], 
input[type="password"] {
    border: 1px solid #ccd6e0;
    border-radius: 8px;
    box-sizing: border-box;
    color: #333;
    font-size: 1rem;
    margin-bottom: 15px;
    padding: 14px;
    transition: all 0.3s ease;
    width: 100%;
}

input:focus {
    border-color: var(--banner-grad-end);
    box-shadow: 0 0 0 3px rgba(3, 127, 250, 0.1);
    outline: none;
}

/* Boutons d'action */
.button-action {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.btn-submit {
    flex: 2;
    background-color: var(--text-main);
    color: var(--banner-grad-start);
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.2s, background 0.3s;
}

.btn-submit:hover {
    background-color: var(--accent-green);
    color: white;
    transform: translateY(-2px);
}

.btn-cancel {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    color: white;
    cursor: pointer;
    flex: 1;
    padding: 14px;
    transition: background 0.3s;
}

.btn-cancel:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Messages */
.Error_Message {
    background: #fff0f0;
    border-radius: 8px;
    color: var(--accent-red);
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
    padding: 12px;
}

.OrangeRed_T10_B {
    color: #556b82;
    font-size: 0.8rem;
    display: block;
    line-height: 1.4;
    margin-top: 15px;
}

/* =============================================================== */
/* ------------------- MEDIA QUERIES RESPONSIVE ----------------- */
/* =============================================================== */

@media (max-width: 576px) {
    .main-login-wrapper {
        padding: 10px; /* On réduit l'espace autour du bloc sur tout petit écran */
        min-height: calc(100vh - 100px);
    }

    .arrondi_Radius_color {
        padding: 20px 15px; /* Réduction drastique du padding pour gagner de la place */
        border-radius: 16px; /* Arrondi légèrement plus discret sur mobile */
    }

    .arrondi_Radius_login {
        padding: 20px 15px; /* Gain d'espace interne */
    }

    .button-action {
        flex-direction: column; /* Empilement vertical des boutons Se connecter / Annuler */
        gap: 10px;
    }

    .btn-submit, .btn-cancel {
        width: 100%; /* Les boutons prennent toute la largeur disponible */
        padding: 12px; /* Confort de clic optimal sur écran tactile */
    }

    .form-head {
        font-size: 1.4rem; /* Légère réduction de la taille du titre */
    }

    .Error_Message {
        font-size: 0.8rem; /* Texte d'erreur plus petit pour s'adapter à l'écran */
    }
}