/* ================================
   LOGIN MODAL
================================ */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 3000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,10,20,.75);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    background: #fff;
    max-width: 420px;
    margin: 10vh auto;
    padding: 42px;
    animation: modalIn .4s ease forwards;
}
.login-form input.field-error {
    border-color: #ef4444 !important;
    background: rgba(239,68,68,0.05);
}


@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(40px) scale(.96);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.modal-box h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.modal-lead {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.login-form {
    display: grid;
    gap: 14px;
}

.login-form input {
    padding: 14px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
}

.modal-footer {
    margin-top: 24px;
    font-size: 14px;
    text-align: center;
}

.modal-footer a {
    color: var(--vs-blue);
    font-weight: 500;
}
