/* Login Theme - VERSIÓN COMPLETA
 * Incluye: backdrop-filter blur, animaciones infinitas, transforms
 * ADVERTENCIA: Alto consumo de GPU (~40-50%)
 */

.login-container {
    min-height: 100vh;
    background: var(--primary-gradient);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--background-login-url);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    z-index: 1;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    left: 5%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px); /* COSTOSO */
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.1);
}

.logo-section {
    z-index: 3;
    position: relative;
}

.form-section {
    z-index: 3;
    position: relative;
}

.modern-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 2px solid transparent !important;
    border-radius: 15px !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px); /* COSTOSO */
    -webkit-backdrop-filter: blur(10px);
}

/* Clases de padding personalizadas para íconos */
.ps-15 {
    padding-left: 3.5rem !important;
}

.modern-input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    transform: translateY(-2px);
}

.modern-btn {
    background: var(--primary-gradient) !important;
    border: none !important;
    border-radius: 15px !important;
    padding: 15px 30px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.modern-btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4) !important;
}

.pulse-animation {
    animation: pulse 2s infinite; /* COSTOSO - animación infinita */
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.link-modern {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.link-modern:hover {
    color: #ffffff !important;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.5);
}

/* Mejorar contraste del texto en todos los gradientes */
.text-white {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* Estilos específicos para mejorar legibilidad */
.fs-1, .fs-2x {
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5) !important;
}

.opacity-75 {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
}

/* Mejorar contraste de los iconos */
.fas, .bi {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Error Alert Container */
.error-alert-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.error-message {
    background: rgba(255, 71, 87, 0.7) !important;
    color: #ffffff !important;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 8px 20px rgba(255, 71, 87, 0.25),
                0 0 15px rgba(255, 71, 87, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    animation: errorSlideIn 0.5s ease-out;
}

.error-text {
    display: inline-block;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.error-message i {
    font-size: 1.1rem;
    color: #ffffff !important;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Efecto de pulso más sutil */
.error-pulse {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 17px;
    background: rgba(255, 71, 87, 0.1);
    animation: pulseGlow 3s infinite; /* COSTOSO - animación infinita */
    z-index: 5;
}

@keyframes pulseGlow {
    0%, 100% { 
        opacity: 0.2;
        transform: scale(1);
    }
    50% { 
        opacity: 0.4;
        transform: scale(1.03);
    }
}

@keyframes errorSlideIn {
    0% { 
        opacity: 0;
        transform: translateY(-10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}
