/* Login Page Styles */

/* Pre-loader */
.loader-bg {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loader-bg.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-track {
    position: relative;
}

.loader-fill {
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        width: 0%;
        transform: translateX(0);
    }
    50% {
        width: 70%;
        transform: translateX(0);
    }
    100% {
        width: 100%;
        transform: translateX(0);
    }
}

/* Background Image */
.auth-main {
    background-image: url('../images/fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Overlay para mejorar legibilidad del formulario */
.auth-form::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
    border-radius: 1rem;
    z-index: 0;
}

.auth-form > .card {
    position: relative;
    z-index: 1;
}

/* Form Input Styles */
.form-input {
    background-color: #F9FAFB;
    transition: all 0.2s ease;
}

.form-input:focus {
    background-color: white;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Checkbox Styles */
.form-checkbox {
    accent-color: #4F46E5;
}

/* Button Styles */
.btn-login {
    position: relative;
    overflow: hidden;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:active {
    transform: translateY(0);
}

/* Card Styles */
.card {
    backdrop-filter: blur(10px);
}

/* Responsive */
@media (max-width: 640px) {
    .auth-form {
        padding: 1rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}
