/* ============================================
   LOGIN PAGE STYLES
   ============================================ */

/* Mejoras de responsividad y diseño */
.auth-wrapper {
    min-height: 100vh;
    position: relative;
}

.lavalite-bg {
    height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
}

.lavalite-overlay {
    background: linear-gradient(45deg, rgba(0,123,255,0.8), rgba(40,167,69,0.8));
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.authentication-form {
    max-width: 400px;
    padding: 2rem;
}

.logo-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-centered img {
    width: 120px;
    height: auto;
}

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group i {
    position: absolute;
    left: 15px;
    top: 17px;
    color: #6c757d;
    z-index: 10;
    pointer-events: none;
    font-size: 16px;
    line-height: 16px;
}

.form-group .form-control {
    padding-left: 45px;
    height: 50px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group .form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-group .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.text-danger {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

h3 {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: #6c757d;
    margin-bottom: 2rem;
}

.btn-outline-theme-green {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-outline-theme-green:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.forgot-password {
    color: #007bff;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #0056b3;
    text-decoration: underline;
}

.alert {
    border-radius: 10px;
    border: none;
}

.register {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.register p {
    margin-bottom: 0;
    font-size: 0.875rem;
}

.register a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 768px) {
    .authentication-form {
        padding: 1.5rem;
        margin: 0 1rem;
    }
    
    .logo-centered img {
        width: 100px;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .form-group .form-control {
        height: 45px;
        font-size: 0.9rem;
    }
    
    .btn-outline-theme-green {
        height: 45px;
        font-size: 0.9rem;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .authentication-form {
        padding: 1rem;
        margin: 0 0.5rem;
    }
    
    .auth-wrapper {
        padding: 1rem 0;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.authentication-form {
    animation: slideInUp 0.6s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LOADING STATES
   ============================================ */

/* Animación para el spinner de carga */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACCESSIBILITY IMPROVEMENTS
   ============================================ */

/* Focus improvements for keyboard navigation */
.form-control:focus,
.btn:focus,
.forgot-password:focus {
    outline: 2px solid #28a745;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .form-control {
        border-width: 3px;
    }
    
    .btn-outline-theme-green {
        border-width: 3px;
    }
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .authentication-form {
        animation: none;
    }
    
    .btn-outline-theme-green:hover {
        transform: none;
    }
    
    .btn.loading::after {
        animation: none;
    }
}