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

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

.modal-icon {
    font-size: 60px;
    color: #e74c3c;
    margin-bottom: 20px;
}

.modal-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.modal-button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 53, 0.3);
}

.modal-button:active {
    transform: translateY(0);
}

/* Estilos Modal 2FA */
.modal-2fa-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-2fa-overlay.active {
    display: flex;
}

.modal-2fa-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    text-align: center;
}

.modal-2fa-icon {
    font-size: 60px;
    color: #3498db;
    margin-bottom: 20px;
}

.modal-2fa-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.modal-2fa-message {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.modal-2fa-code-input {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    letter-spacing: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: monospace;
}

.modal-2fa-code-input:focus {
    outline: none;
    border-color: #3498db;
}

.modal-2fa-buttons {
    display: flex;
    gap: 10px;
}

.modal-2fa-button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-2fa-button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.modal-2fa-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.modal-2fa-button-secondary {
    background: #f1f1f1;
    color: #666;
}

.modal-2fa-button-secondary:hover {
    background: #e0e0e0;
}

.modal-2fa-dev-notice {
    margin-top: 15px;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    font-size: 14px;
    color: #856404;
}

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

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive - Media Queries */
@media (max-width: 480px) {
    .modal-content,
    .modal-2fa-content {
        padding: 20px;
        width: 95%;
        max-width: 350px;
    }

    .modal-icon,
    .modal-2fa-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }

    .modal-title,
    .modal-2fa-title {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .modal-message,
    .modal-2fa-message {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .modal-button,
    .modal-2fa-button {
        font-size: 14px;
        padding: 10px;
    }

    .modal-2fa-code-input {
        font-size: 20px;
        padding: 12px;
        letter-spacing: 8px;
    }

    .modal-2fa-dev-notice {
        font-size: 12px;
        padding: 8px;
    }
}

@media (max-width: 360px) {
    .modal-content,
    .modal-2fa-content {
        padding: 15px;
        width: 95%;
        max-width: 320px;
    }

    .modal-icon,
    .modal-2fa-icon {
        font-size: 40px;
        margin-bottom: 12px;
    }

    .modal-title,
    .modal-2fa-title {
        font-size: 18px;
    }

    .modal-message,
    .modal-2fa-message {
        font-size: 13px;
    }

    .modal-2fa-code-input {
        font-size: 18px;
        padding: 10px;
        letter-spacing: 6px;
    }

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

    .modal-2fa-button {
        width: 100%;
    }
}
