/* =========================================================
   LOGIN OVERLAY
   ========================================================= */

.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(7, 15, 30, 0.72);
    backdrop-filter: blur(4px);
}

/* Mantiene davvero nascosto l'overlay */
.login-overlay[hidden] {
    display: none;
}


/* =========================================================
   LOGIN PANEL
   ========================================================= */

.login-panel {
    position: relative;

    width: 100%;
    max-width: 430px;

    padding: 34px 30px 30px;

    background: #ffffff;
    color: #152238;

    border-radius: 22px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32);

    animation: loginPanelOpen 0.18s ease-out;
}

@keyframes loginPanelOpen {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }

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


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

.login-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.login-close:hover {
    background: #dfe4eb;
}


/* =========================================================
   TEXT
   ========================================================= */

.login-panel h2 {
    margin: 0 44px 10px 0;

    font-size: 27px;
    line-height: 1.2;
}

.login-text {
    margin: 0 0 24px;

    color: #5b6677;

    font-size: 15px;
    line-height: 1.5;
}


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

.login-panel label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 700;
}

.login-panel input {
    width: 100%;
    box-sizing: border-box;

    padding: 13px 14px;

    border: 1px solid #cfd6df;
    border-radius: 10px;

    background: #ffffff;
    color: #152238;

    font: inherit;
    font-size: 16px;

    outline: none;
}

.login-panel input:focus {
    border-color: #19c965;

    box-shadow:
        0 0 0 3px rgba(25, 201, 101, 0.16);
}


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

.login-continue {
    width: 100%;

    margin-top: 18px;
    padding: 13px 18px;

    border: 0;
    border-radius: 12px;

    background: #19c965;
    color: #07151f;

    font-size: 16px;
    font-weight: 800;

    cursor: pointer;
}

.login-continue:hover {
    filter: brightness(0.96);
}

.login-continue:active {
    transform: translateY(1px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .login-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .login-panel {
        max-width: none;

        padding: 30px 22px 24px;

        border-radius: 20px 20px 14px 14px;
    }

    .login-panel h2 {
        font-size: 24px;
    }

}