
/* Overlay background */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Modal box container */
.modal-box {
    background: #424242ff;
    border-radius: 10px;
    padding: 0;
    max-width: 380px;
    width: 100%;
    position: relative;
    animation: fadeInUp 0.25s ease-out;
}

/* Close button */
.modal-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    color: black;
    cursor: pointer;
}

/* Animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}


.auth-card {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 10px;
    padding: 30px 25px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.auth-card h2 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    color: #222;
}

.auth-card label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.auth-card input {
    width: 100%;
    padding: 11px 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.auth-card input:focus {
    border-color: #ff0000;
    outline: none;
    box-shadow: 0 0 3px rgba(255,0,0,0.5);
}

.auth-card button {
    width: 100%;
    padding: 12px;
    background: #ff0000;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 16px;
}

.auth-card button:hover {
    background: #cc0000;
}

.auth-links {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

.auth-links a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
}

.auth-links a:hover {
    text-decoration: underline;
}

.error-box {
    background: #ffcccc;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    color: #900;
}

@media (max-width: 768px) {
    .auth-card {
        width: 90%;
    }
    .modal-box {
        display: flex;          /* REQUIRED */
        align-items: center;    /* vertical center */
        justify-content: center;/* horizontal center (optional but recommended) */
    }
    /* Close button */
    .modal-close {
        top: 3vw;
        right: 10vw;
    }
}