/* --- LOGIN MEJORADO - CORRECTOR DE TAMAÑO Y COLOR --- */
:root {
    --bg-dark: #000000;
    --bg-card: #0d0d0d;
    --neon-cyan: #00F5FF;
    --neon-purple: #8A2BE2;
}

body {
    background-color: var(--bg-dark);
    font-family: 'Segoe UI', sans-serif;
    color: white;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px; /* Ancho máximo para que no se vea gigante */
    /* Importante para contener los inputs */
    box-sizing: border-box; 
    position: relative;
}

/* --- FIX DE INPUTS DESBORDADOS --- */
.input-group {
    position: relative;
    margin-bottom: 30px;
    /* Asegura que el contenedor no se desborde */
    width: 100%; 
    box-sizing: border-box;
}

/* Fix para los iconos internos */
.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neon-cyan);
    font-size: 13px;
    opacity: 0.6;
    z-index: 2; /* Por encima del fondo del input */
}

/* Estilo base del input - Corregido */
.input-group input {
    width: 100%;
    /* Muy importante: padding-left para el icono y padding-right para el ojo */
    padding: 12px 35px 12px 35px; 
    background: rgba(255, 255, 255, 0.02) !important; /* Fondo muy oscuro */
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white !important;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    /* Importante para que el padding no sume al ancho */
    box-sizing: border-box; 
    border-radius: 4px;
}

/* Label flotante mejorado */
.input-group label {
    position: absolute;
    left: 35px; /* Alineado con el inicio del texto */
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    transition: 0.3s ease-all;
    font-size: 14px;
}

/* --- COMBATIR AUTOCOMPLETADO DE CHROME --- */
/* Esto quita el fondo azul/gris pálido que pone Chrome y que oculta el ojo */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover, 
.input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: white !important;
    -webkit-box-shadow: 0 0 0px 1000px #0d0d0d inset !important; /* Mismo color que la caja de login */
    transition: background-color 5000s ease-in-out 0s;
}

/* --- EFECTOS DE FOCO Y TEXTO --- */
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 8px;
    font-size: 11px;
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.input-group input:focus {
    border-bottom: 1px solid var(--neon-cyan);
    box-shadow: 0 1px 0 0 var(--neon-cyan);
}

/* --- EL OJO (VER CONTRASEÑA) --- */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.3); /* Color claro para que se vea sobre oscuro */
    transition: 0.3s;
    z-index: 2; /* Por encima del fondo del input */
    font-size: 14px;
}

.toggle-password:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Botón de Entrar alineado */
.btn-neon {
    width: 100%;
    padding: 15px 30px; color: var(--neon-cyan); background: transparent;
    border: 1px solid var(--neon-cyan); cursor: pointer; text-transform: uppercase;
}

.btn-neon:hover {
    background: var(--neon-cyan); color: #000; box-shadow: 0 0 20px var(--neon-cyan);
}