/* ===========================================================
   PAGE DE CONNEXION – Styles isolés (ne modifient pas les autres pages)
   =========================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@300;400;700&family=Roboto:wght@300;400;700&display=swap');

/* === STRUCTURE GLOBALE === */
.login-body {
    background: #f4f4f4;
    font-family: 'Oswald', 'Roboto', sans-serif;
    margin: 0;
    padding: 40px 10px;
}

/* Container principal */
.login-container {
    max-width: 900px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Carte blanche */
.login-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: fadeIn 0.4s ease-out;
    position: relative;
    padding-top: 20px;
}

/* Animation d’apparition */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* === TITRES === */
.login-title,
.login-subtitle {
    font-family: inherit;
}

.login-title {
    text-align: center;
    font-size: 26px;
    margin-bottom: 10px;
    color: #222;
    font-weight: bold;
}

.login-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
    color: #555;
}

/* === FORMULAIRES === */
.login-input {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit !important;
}

/* Correction WebKit : Chrome/Edge forcent une police sur email/text/password */
input[type="email"],
input[type="text"],
input[type="password"] {
    font-family: inherit !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    -webkit-text-security: none !important;
}

.login-password-wrapper {
    position: relative;
}

/* Icône voir / cacher mot de passe */
.login-showpass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.6;
    padding: 4px;
}

.login-showpass:hover {
    opacity: 1;
}

/* === BOUTONS === */
.login-button {
    width: 100%;
    background: #201E45;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.25s;
}

.login-button:hover {
    background: #181633;
}

.login-button-secondary {
    background: white;
    color: #201E45;
    border: 2px solid #201E45;
}

.login-button-secondary:hover {
    background: #f0f0f0;
    color: #181633;
    border-color: #181633;
}

/* === LIENS === */
.login-link a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.login-link a:hover {
    text-decoration: underline;
}

/* === MESSAGES D'ERREUR === */
.login-error {
    background: #ffdddd;
    border-left: 4px solid #cc0000;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    color: #990000;
    font-weight: bold;
    font-size: 16px;
}

/* ===========================================================
   IMAGES DE LA PAGE DE CONNEXION
   =========================================================== */
.login-card-icon {
    position: absolute;
    top: 38px;
    left: 20px;
    width: 55px;
    height: auto;
    opacity: 1;
}

/* Responsive smartphone */
@media (max-width: 600px) {
    .login-card-icon {
        position: relative;
        top: 0;
        left: 0;
        margin: 0 auto 20px auto;
        display: block;
        width: 80px;
    }
}

/* ===========================================================
   RESPONSIVE DESIGN
   =========================================================== */

/* TABLETTES */
@media (max-width: 992px) {
    .login-body {
        padding: 30px 10px;
    }

    .login-card {
        padding: 30px;
    }

    .login-title {
        font-size: 26px;
    }

    .login-subtitle {
        font-size: 18px;
    }

    .login-input {
        font-size: 16px;
        padding: 14px;
    }

    .login-button {
        font-size: 18px;
        padding: 14px;
    }
}

/* SMARTPHONES */
@media (max-width: 600px) {

    .login-body {
        padding: 20px;
    }

    .login-container {
        gap: 30px;
    }

    .login-card {
        padding: 35px 25px;
    }

    .login-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .login-subtitle {
        font-size: 18px;
        margin-bottom: 25px;
    }

    .login-input {
        font-size: 17px;
        padding: 14px 16px;
    }

    .login-showpass {
        font-size: 22px;
    }

    .login-button {
        font-size: 18px;
        padding: 16px;
        border-radius: 8px;
    }

    .login-link a {
        font-size: 16px;
    }

    .login-error {
        font-size: 16px;
        padding: 20px;
    }
}

/* PETITS SMARTPHONES */
@media (max-width: 380px) {
    .login-card {
        padding: 30px 20px;
    }
}

/* ===========================================================
   CADRES DU BAS (TEXTE1 / TEXTE2)
   =========================================================== */

.login-bottom-boxes {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.login-box {
    flex: 1;
    background: #eef0f7;          /* fond visible sur smartphone et desktop */
    border: 1px solid #c1c5d0;    /* bordure bien visible */
    padding: 15px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    color: #333;
    box-sizing: border-box;
}

/* Responsive : les 2 blocs passent l’un sous l’autre sur smartphone */
@media (max-width: 600px) {
    .login-bottom-boxes {
        flex-direction: column;
        gap: 15px;
    }
}
