
/* =====================================================
   LOGIN POPUP CSS
   File: css/pop_login.css
   ===================================================== */

.login-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow-y: auto;
    background: rgba(17, 29, 49, 0.68);
    backdrop-filter: blur(4px);
}

body.popup-open {
    overflow: hidden;
}

.login-modal-content {
    position: relative;
    width: 100%;
    max-width: 410px;
    margin: auto;
    padding: 34px 32px 26px;
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 17px;
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.25);
    animation: loginPopupAppear 0.22s ease-out;
}

@keyframes loginPopupAppear {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-popup {
    position: absolute;
    top: 12px;
    right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f1f3f7;
    color: #657087;
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.close-popup:hover {
    background: #ffe5e5;
    color: #f80707;
}

.login-heading {
    text-align: center;
    margin-bottom: 27px;
}

.login-lock-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 67px;
    height: 67px;
    margin: 0 auto 15px;
    border-radius: 18px;
    background: #edf1f8;
    color: #3b527c;
    font-size: 31px;
}

.login-heading h2 {
    margin: 0 0 9px;
    color: #283957;
    font-size: 25px;
    font-weight: 800;
}

.login-heading p {
    margin: 0;
    color: #7a8498;
    font-size: 13px;
}

.login-form-group {
    margin-bottom: 19px;
}

.login-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #283957;
    font-size: 13px;
    font-weight: 700;
}

.login-form-group input {
    display: block;
    width: 100%;
    min-height: 47px;
    padding: 12px 14px;
    border: 1px solid #dce2ec;
    border-radius: 8px;
    outline: none;
    background: #fbfcfe;
    color: #283957;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-form-group input::placeholder {
    color: #a1aabc;
}

.login-form-group input:focus {
    border-color: #3b527c;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 82, 124, 0.12);
}

.login-submit-button {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 9px;
    padding: 13px 18px;
    border: none;
    border-radius: 8px;
    background: #3b527c;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.login-submit-button:hover {
    background: #283957;
    transform: translateY(-1px);
}

.login-submit-button:active {
    transform: translateY(0);
}

.login-footer {
    margin: 24px 0 0;
    padding-top: 17px;
    border-top: 1px solid #edf0f5;
    color: #7a8498;
    font-size: 11px;
    text-align: center;
}

/* Login popup visibility */
#user_Popup.login-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

#user_Popup.login-modal[aria-hidden="false"] {
    display: flex !important;
}

#user_Popup .login-modal-content {
    width: 100%;
    max-width: 410px;
    box-sizing: border-box;
}

body.popup-open {
    overflow: hidden;
}

@media (max-width: 480px) {
    .login-modal {
        padding: 14px;
    }

    .login-modal-content {
        padding: 31px 22px 23px;
        border-radius: 13px;
    }

    .login-heading h2 {
        font-size: 23px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-modal-content {
        animation: none;
    }
}

