/* ============================================================
   LOGIN PAGE - Glassmorphism (mismo estilo del sistema actual)
   ============================================================ */

/* Fondo con imagen y animacion suave */
.login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image: url('../images/bustrainImg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.92);
    animation: bgFade 10s ease-in-out infinite;
}

@keyframes bgFade {
    0%   { opacity: 0.85; }
    50%  { opacity: 1; }
    100% { opacity: 0.85; }
}

/* Overlay oscuro translucido */
.login-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.25);
}

/* Contenido sobre el fondo */
.login-content {
    position: relative;
    z-index: 2;
    padding-top: 30px;
    text-align: center;
}

/* Logo / Header */
#header.login-header {
    height: 120px;
    width: 100%;
    background: url('../images/bgLogginv2.png') no-repeat center;
    background-size: 260px auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.22));
}

/* Tarjeta glassmorphism */
.login-card {
    width: 380px;
    max-width: 92vw;
    margin: 0 auto;
    padding: 18px 18px 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

/* Tabla del formulario */
.login-table {
    margin: 0 auto;
    width: 100%;
}

.login-table td {
    padding: 8px 6px;
    color: #fff;
    font-weight: 600;
    text-align: left;
}

.login-table label {
    color: #fff;
    opacity: 0.95;
    font-weight: 600;
}

.login-table input {
    width: 100%;
    height: 38px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    padding: 8px 10px;
    outline: none;
    font-size: 14px;
}

.login-table input:focus {
    border-color: #ff8000 !important;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 0 0 2px rgba(255, 128, 0, 0.3);
}

/* Contenedor del campo contrasena con toggle */
.password-wrapper {
    position: relative;
    display: block;
}

.password-wrapper input {
    padding-right: 42px;
}

.toggle-pass {
    position: absolute;
    right: 10px;
    top: 8px;
    cursor: pointer;
    user-select: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 16px;
}

.toggle-pass:hover {
    color: #ff8000;
}

/* Botones */
.login-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.login-buttons .btn {
    min-width: 130px;
    border-radius: 10px;
    font-weight: 600;
}

.btn-primary {
    background-color: #ff8000;
    border-color: #e67300;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
    background-color: #e67300;
    border-color: #cc6600;
}

/* Alertas de login */
.alert-login {
    width: 380px;
    max-width: 92vw;
    margin: 0 auto 12px auto;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
}

.alert-danger-login {
    background: rgba(220, 53, 69, 0.85);
    color: #fff;
    border: 1px solid #dc3545;
}

.alert-success-login {
    background: rgba(25, 135, 84, 0.85);
    color: #fff;
    border: 1px solid #198754;
}

/* Footer */
.login-footer {
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

/* Canvas nieve */
#snowCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    pointer-events: none;
}
