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

.login-body {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    background: #f7f9fc;
    overflow-x: hidden;
    overflow-y: auto;
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: rgba(95, 168, 211, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: rgba(95, 168, 211, 0.8);
}

html {
    scrollbar-width: thin;
    scrollbar-color: rgba(95, 168, 211, 0.5) transparent;
}

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

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

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem 1.8rem;

    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(95, 168, 211, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.4);

    position: relative;
    box-sizing: border-box;
}

/* 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 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;

    background: linear-gradient(90deg, #5fa8d3, #b39ddb, #80cbc4);
    -webkit-background-clip: text;
    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: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin-bottom: 0.9rem;

    border-radius: 10px;
    border: 1px solid rgba(203, 213, 225, 0.6);

    background: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    color: #1e293b;

    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.login-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2);
}

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

.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    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;
}