/* ================= MODAL BACKDROP ================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-backdrop[hidden] {
    display: none !important;
}

/* ================= MODAL ================= */

.modal {
    background: #0f1433;
    padding: 32px;
    width: 100%;
    max-width: 420px;
    border-radius: 8px;
    position: relative;
}

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

.modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

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

.modal form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.modal input {
    padding: 10px;
}

.modal-error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid #ff5050;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

.register-error {
    background: rgba(255, 80, 80, 0.15);
    border: 1px solid #ff5050;
    color: #ffb3b3;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 14px;
    font-size: 0.9rem;
}

