/* Fuente Corporativa: Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Blanco translúcido para el efecto cristal */
    --glass-white: rgba(255, 255, 255, 0.85); 
    --glass-border: rgba(255, 255, 255, 0.9);
    
    /* Colores Corporativos */
    --text-main: #111111;       /* Negro casi puro para títulos */
    --text-muted: #666666;      /* Gris para etiquetas */
    --primary-color: #000000;   /* Botón negro sólido (elegante) */
    --input-bg: rgba(240, 242, 245, 0.7); /* Gris muy suave para inputs */
    --focus-blue: #2563eb;      /* Azul sutil para el foco */
}

* { box-sizing: border-box; }

body {
    margin: 0;
    height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: url('../../assets/img/bg-login.webp') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Capa oscura suave sobre la foto para que resalte el cuadro blanco */
body::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 360px; /* Mucho más estrecho (compacto) */
    padding: 30px;    /* Menos relleno vertical */
    
    /* EFECTO CRISTAL BLANCO */
    background: var(--glass-white);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2); /* Sombra suave y difusa */
    
    /* Bordes sutilmente redondeados (Look profesional) */
    border-radius: 6px; 
}

.brand-header {
    text-align: center;
    margin-bottom: 25px;
}

.brand-title {
    font-size: 1.4rem; /* Título más pequeño */
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.brand-subtitle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- FORMULARIO COMPACTO --- */
.input-group {
    position: relative;
    margin-bottom: 15px; /* Menos espacio entre inputs */
}

.input-group label {
    display: block;
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.input-field {
    width: 100%;
    padding: 10px 12px; /* Input más delgado */
    padding-left: 35px; /* Espacio para icono izquierdo */
    padding-right: 35px; /* Espacio para el ojo */
    
    background: var(--input-bg);
    border: 1px solid #d1d5db;
    color: var(--text-main);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    border-radius: 4px;
    transition: 0.2s;
}

.input-field:focus {
    background: #fff;
    border-color: var(--focus-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Iconos dentro de los inputs */
.input-icon {
    position: absolute;
    top: 36px; /* Ajuste fino basado en label + padding */
    left: 12px;
    color: #9ca3af;
    font-size: 0.9rem;
    z-index: 5;
}

/* OJO */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 36px;
    color: #9ca3af;
    cursor: pointer;
    font-size: 0.9rem;
    z-index: 5;
}

.toggle-password:hover { color: var(--text-main); }

/* BOTÓN COMPACTO */
.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--text-main); /* Negro sólido */
    border: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 15px;
    border-radius: 4px;
    transition: 0.2s;
}

.btn-login:hover {
    background: #333;
    transform: translateY(-1px);
}

/* ENLACES */
.links {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 15px;
}

.links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: 0.2s;
}

.links a:hover { color: var(--text-main); text-decoration: underline; }

/* ERROR */
.error-msg {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}