/* ===========================
   PAGE LOGIN - MODERNE BLEU CLAIR
=========================== */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;

    /* Background ultra moderne */
    background: linear-gradient(135deg, #dff4ff, #8fd3ff, #5bbcff);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;

    padding: 20px;
    box-sizing: border-box;
}

/* Animation fond */
@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===========================
   CONTAINER
=========================== */
.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);

    padding: 40px 30px;
    border-radius: 24px;

    box-shadow:
        0 15px 40px rgba(0, 119, 255, 0.18),
        0 5px 15px rgba(0, 0, 0, 0.08);

    border: 1px solid rgba(255,255,255,0.4);

    max-width: 400px;
    width: 100%;
    text-align: center;

    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.login-container.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===========================
   LOGO
=========================== */
.login-logo img {
    width: 100px;
    height: 100px;
    object-fit: cover;

    border-radius: 50%;
    border: 4px solid #4bb6ff;

    padding: 4px;
    background: #fff;

    margin-bottom: 20px;

    box-shadow:
        0 8px 20px rgba(0, 153, 255, 0.25);
}

/* ===========================
   FORMULAIRE
=========================== */
.login-form h2 {
    color: #0077cc;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-group {
    text-align: left;
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #4b5b6a;
    margin-bottom: 6px;
    font-weight: 600;
}

/* INPUTS */
.form-group input {
    width: 100%;
    padding: 14px 15px;

    border-radius: 14px;
    border: 1px solid #d6e9f7;

    background: #f8fcff;

    font-size: 14px;
    color: #222;

    outline: none;
    box-sizing: border-box;

    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #9aa9b8;
}

.form-group input:focus {
    border-color: #3aaeff;

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(58, 174, 255, 0.15),
        0 4px 12px rgba(58, 174, 255, 0.12);
}

/* ===========================
   TOGGLE MOT DE PASSE
=========================== */
.password-group .toggle-password {
    position: absolute;
    top: 40px;
    right: 14px;

    cursor: pointer;

    color: #1d9bf0;
    transition: 0.3s ease;
}

.password-group .toggle-password:hover {
    color: #0077cc;
    transform: scale(1.1);
}

/* ===========================
   BOUTON LOGIN
=========================== */
.btn-login {
    width: 100%;
    padding: 14px;

    background: linear-gradient(135deg, #1da1ff, #0077ff);

    color: #fff;
    border: none;
    border-radius: 30px;

    font-size: 16px;
    font-weight: 600;

    cursor: pointer;

    margin-top: 10px;

    transition: all 0.3s ease;

    display: flex;
    justify-content: center;
    align-items: center;

    box-shadow:
        0 10px 20px rgba(0, 119, 255, 0.25);
}

.btn-login i {
    margin-right: 8px;
}

.btn-login:hover {
    transform: translateY(-3px);

    background: linear-gradient(135deg, #0d8dff, #0062d6);

    box-shadow:
        0 14px 28px rgba(0, 119, 255, 0.35);
}

.btn-login:active {
    transform: scale(0.98);
}

/* ===========================
   LIENS
=========================== */
.login-links {
    margin-top: 18px;
    font-size: 13px;
    color: #555;
}

.login-links a {
    color: #0077cc;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.login-links a:hover {
    color: #00a2ff;
    text-decoration: underline;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 480px) {

    .login-page {
        padding: 15px;
    }

    .login-container {
        padding: 30px 20px;
        border-radius: 20px;
    }

    .login-logo img {
        width: 85px;
        height: 85px;
    }

    .login-form h2 {
        font-size: 24px;
    }

    .btn-login {
        font-size: 15px;
        padding: 13px;
    }
}

/* ===========================
   MODAL
=========================== */
.modal {
    display: none;

    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(8, 25, 45, 0.55);

    justify-content: center;
    align-items: center;

    z-index: 9999;

    backdrop-filter: blur(6px);
}

/* ===========================
   MODAL CONTENT
=========================== */
.modal-content {
    background: rgba(255,255,255,0.97);

    backdrop-filter: blur(12px);

    padding: 30px 25px;

    border-radius: 18px;

    text-align: center;

    min-width: 300px;
    max-width: 400px;

    box-shadow:
        0 15px 35px rgba(0, 119, 255, 0.18);

    position: relative;

    animation: fadeIn 0.35s ease;
}

/* ===========================
   CLOSE MODAL
=========================== */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;

    cursor: pointer;

    font-size: 24px;
    color: #555;

    transition: 0.3s ease;
}

.close-modal:hover {
    color: #0077ff;
    transform: rotate(90deg);
}

/* ===========================
   ANIMATION
=========================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}