/* ================================
   GLOBAL LOGIN PAGE — NEURONAL THEME
================================ */

.login-body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: #f7f9fc;
    overflow: hidden;
    position: relative;
}

/* Neural animated background */
#loginNeural {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ================================
   LOGIN WRAPPER / CARD
================================ */

.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.6rem;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.3rem 2rem;

    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(18px);

    border-radius: 22px;
    border: 1px solid rgba(160, 180, 255, 0.15);
    box-shadow: 0 14px 38px rgba(95, 168, 211, 0.25);

    position: relative;
    overflow: hidden;
}

/* Halo glowing animation (IDENTIQUE à inscription) */
.login-card::before {
    content: "";
    position: absolute;
    inset: -40%;
    width: 180%;
    height: 180%;
    margin: auto;

    background: radial-gradient(circle,
            rgba(95, 168, 211, 0.22),
            transparent 70%);

    z-index: -1;
    animation: loginGlow 8s ease-in-out infinite;
}

@keyframes loginGlow {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12) translate(10px, 10px);
    }

    100% {
        transform: scale(1);
    }
}

/* ================================
   TITLE
================================ */

.login-title {
    margin: 0 0 1.4rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;

    background: linear-gradient(90deg, #5fa8d3, #b39ddb, #80cbc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    filter: drop-shadow(0 0 6px rgba(95, 168, 211, 0.4));
}

/* ================================
   FORM ELEMENTS
================================ */

label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #263238;
}

.login-input {
    width: 90%;
    padding: 12px 14px;
    margin-bottom: 1.2rem;

    border-radius: 12px;
    border: 1px solid #d9e6ff;

    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;

    box-shadow: inset 0 0 8px rgba(95, 168, 211, 0.08);
    transition: 0.25s ease;
}

.login-input:focus {
    outline: none;
    border-color: #5fa8d3;
    box-shadow: 0 0 12px rgba(95, 168, 211, 0.35);
}

/* ================================
   BUTTON
================================ */

.login-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    cursor: pointer;

    background: linear-gradient(90deg, #5fa8d3, #80cbc4);
    color: #fff;

    font-size: 17px;
    font-weight: 600;

    transition: 0.3s ease;
    box-shadow: 0 4px 14px rgba(95, 168, 211, 0.3);
}

.login-btn:hover {
    box-shadow: 0 8px 20px rgba(95, 168, 211, 0.45);
}

/* ================================
   BOTTOM LINK
================================ */

.login-register {
    margin-top: 1.1rem;
    text-align: center;
}

.login-register a {
    color: #5fa8d3;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
}

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

/* ================================
   ALERTS
================================ */

.login-alert {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 1rem;
    font-size: 15px;
}

.login-alert.ok {
    background: #e8fff1;
    border: 1px solid #b2f5c7;
    color: #147d45;
}

.login-alert.err {
    background: #ffe8ea;
    border: 1px solid #ffb3bb;
    color: #b30021;
}

/* ================================
   VERIFY MODAL (same as register)
================================ */

.verify-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.verify-modal {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px;
    width: 92%;
    max-width: 420px;

    box-shadow: 0 10px 30px rgba(95, 168, 211, 0.25);
    animation: popupIn 0.35s ease;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verify-modal h3 {
    margin-top: 0;
    font-size: 1.35rem;
}

.verify-row {
    display: flex;
    margin-top: 1rem;
    gap: 8px;
}

.verify-input {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d9e6ff;
    font-size: 16px;
}

.verify-btn {
    background: #5fa8d3;
    color: white;
    border: none;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
}

.verify-btn.ghost {
    background: #eef7ff;
    color: #2e4e63;
    border: 1px solid #daeaff;
}

.verify-actions {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}