/* --- Estilos Únicos para Login MUROTECH --- */

.login-body {
    background: var(--grad-hero);
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 0;
}

/* --- Partículas Animadas de Fondo --- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Formas Geométricas Decorativas --- */
.geometric-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: var(--grad-accent);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: -150px;
    right: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: var(--grad-primary);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    bottom: -100px;
    left: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--murotech-orange-400), var(--murotech-blue-400));
    border-radius: 41% 59% 41% 59% / 41% 59% 41% 59%;
    top: 50%;
    right: 10%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(90deg); }
    50% { transform: translate(-20px, 20px) rotate(180deg); }
    75% { transform: translate(-30px, -20px) rotate(270deg); }
}

/* --- Contenedor Principal con Glassmorphism --- */
.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-premium);
    padding: var(--space-8) var(--space-10);
    width: 100%;
    max-width: 440px;
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- Efecto de Brillo Sutil --- */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.8s;
}

.auth-card:hover::before {
    left: 100%;
}

@keyframes slideInUp {
    from { 
        transform: translateY(50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

/* --- Header con Identidad MUROTECH --- */
.auth-header {
    text-align: center;
    margin-bottom: var(--space-10);
    position: relative;
}

.logo-container {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    background: var(--grad-premium);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-orange);
    position: relative;
    animation: pulse 2s infinite;
}

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

.logo-container i {
    font-size: 1.5rem;
    color: white;
}

.auth-header h1 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* --- Formulario Moderno --- */
.auth-form {
    position: relative;
}

.input-group {
    position: relative;
    margin-bottom: var(--space-6);
}

.premium-input {
    width: 100%;
    padding: var(--space-4) var(--space-5) var(--space-4) 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid transparent;
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    outline: none;
    position: relative;
}

.premium-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px var(--primary-light), var(--shadow-blue);
    transform: translateY(-2px);
}

.premium-input::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    z-index: 2;
    pointer-events: none;
}

.premium-input:focus ~ .input-icon {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* --- Toggle Password --- */
.password-toggle {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    z-index: 5;
    transition: all var(--transition-fast);
    padding: var(--space-1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

/* --- Utilities & Options --- */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember-me input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
    margin: 0;
}

.forgot-password {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* --- Social Logindivider --- */
.social-divider {
    display: flex;
    align-items: center;
    margin: var(--space-8) 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
}

.social-divider span {
    padding: 0 var(--space-4);
}

/* --- Botones --- */
.btn-primary {
    width: 100%;
    padding: var(--space-4) var(--space-8);
    background: var(--grad-premium);
    border: none;
    border-radius: var(--radius-xl);
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-orange);
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(249, 115, 22, 0.25);
    filter: brightness(1.1);
}

.btn-social {
    width: 100%;
    padding: var(--space-4) var(--space-8);
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-xl);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.btn-social:hover {
    background: var(--murotech-gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-social img {
    width: 20px;
    height: 20px;
}

/* --- Loading State --- */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- Enlace de Registro --- */
.auth-footer {
    text-align: center;
    padding-top: var(--space-6);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-footer a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.auth-footer a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--grad-accent);
    transition: width var(--transition-normal);
}

.auth-footer a:hover::after {
    width: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 640px) {
    .auth-card {
        padding: var(--space-8);
        margin: var(--space-4);
    }

    .auth-header h1 {
        font-size: 2rem;
    }

    .logo-container {
        width: 60px;
        height: 60px;
    }

    .shape-1, .shape-2, .shape-3 {
        display: none;
    }
}
