/**
 * Estilos específicos para autenticación
 * Separado del HTML como requisito del sistema
 */

.auth-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        #ff6b00,
        transparent 20%,
        transparent 50%,
        #ff6b00,
        transparent 70%
    );
    animation: rotate-border 4s linear infinite;
    z-index: -2;
}

.auth-card::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: #000;
    border-radius: 10px;
    z-index: -1;
}

@keyframes rotate-border {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-glow-background {
    z-index: 1;
    overflow: visible;
}

.logo-glow-layer-1 {
    animation: logo-glow-pulse 3.5s ease-in-out infinite;
}

@keyframes logo-glow-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.35;
        transform: scale(1.08);
    }
}

.logo-float {
    animation: logo-float-movement 4s ease-in-out infinite;
}

@keyframes logo-float-movement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-1deg);
    }
}

@media (max-width: 768px) {
    .auth-card {
        padding: 20px 18px 40px 18px !important;
        margin: 16px 8px 16px 8px;
        max-width: calc(100% - 16px);
        border-radius: 12px;
        width: 100% !important;
    }
    
    .auth-card img {
        max-width: 120px !important;
        margin-bottom: 8px !important;
    }
    
    .auth-card h2 {
        font-size: 1.375rem !important;
        margin-bottom: 4px !important;
    }
    
    .auth-card p {
        font-size: 0.875rem !important;
        margin-bottom: 16px !important;
    }
    
    .auth-card input {
        padding: 14px 16px !important;
        font-size: 16px !important;
        min-height: 48px;
    }
    
    .auth-card button {
        padding: 14px !important;
        font-size: 15px !important;
        min-height: 48px;
    }
    
    .auth-card form {
        gap: 18px;
    }
    
    .auth-card .text-center {
        font-size: 0.875rem;
        margin-top: 20px !important;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 18px 16px 36px 16px !important;
        margin: 12px 4px 12px 4px;
        max-width: calc(100% - 8px);
    }
    
    .auth-card img {
        max-width: 100px !important;
        margin-bottom: 6px !important;
    }
    
    .auth-card h2 {
        font-size: 1.125rem !important;
        margin-bottom: 2px !important;
    }
    
    .auth-card p {
        margin-bottom: 12px !important;
    }
    
    .auth-card input {
        padding: 12px 14px !important;
    }
    
    .auth-card form {
        gap: 16px !important;
    }
    
    .auth-card .text-center {
        margin-top: 18px !important;
    }
}
