/* Modal de Login Requerido */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: none;
    padding-bottom: 0;
}

.modal-content p {
    color: #555;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-login, .btn-register, .btn-back {
    padding: 12px 25px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
    flex: 1;
}

.btn-login {
    background-color: var(--primary-color);
    color: white;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register {
    background-color: #28a745; /* Green */
    color: white;
}

.btn-register:hover {
    background-color: #218838;
}

.btn-back {
    background-color: #6c757d; /* Grey */
    color: white;
}

.btn-back:hover {
    background-color: #5a6268;
}

@media (max-width: 480px) {
    .modal-content {
        margin: 1rem;
        max-width: 100%;
    }

    .modal-buttons {
        flex-direction: column;
    }
}
