*,
*::before,
*::after {
    box-sizing: border-box;
}

.modal-login {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 15px;
    display: none;
}

.modal-login.active {
    display: flex;
}


/* ====== CAJA DEL LOGIN ====== */
.modal-box {
    background: #fff;
    width: 100%;
    max-width: 360px;
    border-radius: 18px;
    padding: 25px 20px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    position: relative;
    animation: fadeUp 0.4s ease;
}

/* ====== ANIMACIÓN ====== */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== BOTÓN CERRAR ====== */
.close-modal {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    transition: 0.3s;
}
.close-modal:hover {
    color: #e91e63;
}

/* ====== TÍTULO ====== */
.modal-box h3 {
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
    color: #e91e63; /* tono glam */
    font-size: 22px;
}

/* ====== INPUTS ====== */
.input-box {
    margin-bottom: 18px;
}



.input-box label {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    display: block;
}

.input-box input {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    display: block;
}


.input-box input:focus {
    border-color: #e91e63;
    outline: none;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.15);
}

/* ====== BOTÓN LOGIN ====== */
.btn-login {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #e91e63, #ff6090);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login i {
    font-size: 18px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(233, 30, 99, 0.4);
}



/* ====== RESPONSIVE PARA PANTALLAS GRANDES ====== */
@media (min-width: 768px) {
    .modal-box {
        max-width: 400px;
        padding: 30px 28px 35px;
    }

    .modal-box h3 {
        font-size: 24px;
    }
}