:root {
    --accent-cyan: #38bdf8;
    --accent-blue: #2563eb;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    position: relative;
    overflow-x: hidden;
    background-color: #0b1120;
}

.login-logo-img {
    max-width: 82px;
    max-height: 82px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.4));
}

/* Video en pantalla completa */
#bgVideo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -2;
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 17, 32, 0.55);
    z-index: -1;
}

.login-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 1;
}

/* Tarjeta Cristal Traslúcida */
.glass-box {
    width: 100%;
    max-width: 410px;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    background: rgba(15, 23, 42, 0.65) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.15);
}

.login-icon-box {
    width: 64px;
    height: 64px;
    background: rgba(56, 189, 248, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: var(--accent-cyan);
    border: 1px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--accent-cyan);
}

/* Inputs Unificados con Cristal */
.input-group-glass {
    display: flex;
    align-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(15, 23, 42, 0.6);
    transition: all 0.25s ease;
    overflow: hidden;
}

.input-group-glass:focus-within {
    border-color: var(--accent-cyan);
    background-color: rgba(15, 23, 42, 0.85);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.input-icon {
    color: var(--accent-cyan);
    padding: 0 14px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-control-glass {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 12px 12px 12px 0;
    font-size: 0.92rem;
    color: var(--text-main) !important;
    outline: none !important;
    box-shadow: none !important;
}

.form-control-glass::placeholder {
    color: #64748b;
}

/* Quitar el fondo blanco del autorrelleno de Chrome */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0px 1000px rgba(15, 23, 42, 0.9) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Ojo para contraseña */
.toggle-password {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 0 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--accent-cyan);
}

/* Botón Neón */
.btn-cyber {
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 1px;
    color: #ffffff;
    transition: all 0.3s ease;
    margin-top: 10px;
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.4);
}

.btn-cyber:hover {
    filter: brightness(1.2);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.6);
}

/* Footer y Pulso Verde */
.footer {
    background: transparent !important;
    border: none !important;
    z-index: 1;
}

.pulse-online {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    position: relative;
    vertical-align: middle;
}

.pulse-online::after {
    content: "";
    width: 100%;
    height: 100%;
    background-color: #10b981;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.8; }
    80%, 100% { transform: scale(3.5); opacity: 0; }
}