/* ================= GLOBAL ================= */

body {
    margin: 0;
    font-family: "Inter", Arial, sans-serif;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    background: radial-gradient(circle at top, #111827, #0b0f19);
    overflow: hidden;
}

/* Effet lumineux */
body::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.25), transparent 60%);
    top: -200px;
    right: -200px;
    filter: blur(40px);
    z-index: 0;
}

/* ================= LANGUAGE SWITCHER ================= */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 20;
}

.lang-btn {
    padding: 8px 12px;

    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);

    font-weight: 600;
    cursor: pointer;

    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.lang-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
    color: white;
}

.lang-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 10px 25px rgba(59,130,246,0.35);
}

/* ================= LOGIN CARD ================= */

.login-container {
    width: 340px;

    padding: 35px;
    text-align: center;

    border-radius: 18px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,0.6),
        inset 0 1px 0 rgba(255,255,255,0.05);

    animation: fadeIn .4s ease;

    position: relative;
    z-index: 2;
}

.login-container h2 {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.login-container h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #3b82f6;
    margin: 12px auto 0;
    border-radius: 999px;
}

/* ================= INPUTS ================= */

.login-container input,
.modal-content input[type="email"] {
    width: 100%;
    box-sizing: border-box;

    padding: 14px;
    margin: 10px 0;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(255,255,255,0.06);
    color: white;

    outline: none;
    transition: all .2s ease;
}

.login-container input::placeholder,
.modal-content input::placeholder {
    color: rgba(255,255,255,0.45);
}

.login-container input:focus,
.modal-content input:focus {
    border-color: #3b82f6;
    background: rgba(255,255,255,.10);
    box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

/* ================= BUTTONS ================= */

.login-container button,
.submit-forgot {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 10px;

    cursor: pointer;

    font-weight: 600;
    color: white;

    background: linear-gradient(135deg, #3b82f6, #2563eb);

    transition: all .2s ease;
}

.login-container button:hover,
.submit-forgot:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(59,130,246,.35);
}

.login-container button:active,
.submit-forgot:active {
    transform: translateY(0);
}

/* ================= FORGOT PASSWORD ================= */

.forgot-link {
    display: inline-block;
    margin-top: 18px;

    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;

    transition: .2s;
}

.forgot-link:hover {
    color: #60a5fa;
}

/* ================= MODAL ================= */

.modal {
    display: none;

    position: fixed;
    inset: 0;

    justify-content: center;
    align-items: center;

    background: rgba(0,0,0,.65);
    backdrop-filter: blur(8px);

    z-index: 1000;
}

.modal-content {
    width: 90%;
    max-width: 400px;

    padding: 35px;

    border-radius: 18px;

    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);

    backdrop-filter: blur(18px);

    box-shadow:
        0 20px 60px rgba(0,0,0,.6),
        inset 0 1px 0 rgba(255,255,255,.05);

    color: white;
    text-align: center;

    position: relative;

    animation: fadeIn .3s ease;
}

.modal-content h3 {
    margin-top: 0;
    font-size: 24px;
    margin-bottom: 15px;
}

.modal-content p {
    color: rgba(255,255,255,.75);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ================= CLOSE BUTTON ================= */

.close {
    position: absolute;
    top: 12px;
    right: 18px;

    font-size: 28px;
    color: rgba(255,255,255,.6);

    cursor: pointer;
    transition: .2s;
}

.close:hover {
    color: white;
    transform: scale(1.1);
}

/* ================= MESSAGE ================= */

.message-area {
    margin-top: 15px;
    min-height: 20px;

    font-size: 14px;
    color: rgba(255,255,255,.8);
}

/* ================= ANIMATION ================= */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ================= FOOTER ================= */


.footer-copyright {
    position: fixed;
    bottom: 15px;
    left: 0;
    width: 100%;

    text-align: center;

    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;

    z-index: 10;
}


/* ================= PHONE ================= */

@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        height: 100%;
        margin: 0;
        overflow: hidden;
    }

    body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .login-container {
        width: calc(100% - 40px);
        box-sizing: border-box;
    }

    .footer-copyright {
        position: static;
        margin-top: 15px;
        font-size: 11px;
    }
}

