/* Variables para facilitar cambios de color */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --bg-gradient: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    --card-bg: rgba(255, 255, 255, 1);
    --text-main: #1e293b;
    --text-muted: #64748b;
    --error-bg: #fef2f2;
    --error-text: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Margen de seguridad para móviles */
}

.login-wrapper {
    width: 100%;
    max-width: 400px; /* Ancho máximo en escritorio */
}

.login-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.login-header h2 {
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: 600;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Estilos de Formulario */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
}

.input-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.password-requirements {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.error-box {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    border: 1px solid #fee2e2;
    text-align: center;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-hover);
}

/* MEDIA QUERIES PARA RESPONSIVIDAD TOTAL */

/* Móviles pequeños */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
    
    .login-header h2 {
        font-size: 1.3rem;
    }
}

/* Tablets o modo landscape en móviles */
@media (max-height: 500px) {
    body {
        height: auto;
        padding: 40px 20px;
    }
}