:root {
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --secondary-gradient: linear-gradient(135deg, #4338ca 0%, #5b21b6 100%);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
}

body {
    background: radial-gradient(circle at center, #1e293b, #0f172a);
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.page-container {
    width: 100%;
    display: flex;
    align-items: stretch;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.login-container {
    width: 100%;
    max-width: 450px;
    z-index: 2;
    position: relative;
}

.login-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.25rem;
    padding: 2.75rem;
    animation: float 6s ease-in-out infinite;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.login-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
    z-index: 2;
}

.logo-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-image {
    width: 100px;
    height: auto;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border-radius: 0.5rem;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    padding: 0.8rem;
}

.social-login {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
}

.social-btn {
    width: 220px;
    height: 48px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.social-btn i {
    margin-right: 12px;
    font-size: 1.25rem;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-btn:hover {
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 7px 20px rgba(99, 102, 241, 0.3);
}

.social-btn:hover::before {
    opacity: 1;
}

.login-title {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1.75rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.features-container {
    display: none;
}

@media (min-width: 992px) {
    .features-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 50%;
        padding-right: 3rem;
        margin-right: 3rem;
    }
    
    .login-container {
        width: 50%;
    }
    
    .page-container {
        flex-direction: row;
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    font-size: 1.5rem;
    margin-right: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.feature-icon i {
    position: relative;
    z-index: 2;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.analytics-icon, .ai-icon, .management-icon {
    fill: url(#gradient);
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: transparent;
    z-index: 10000;
    display: none;
}

.loading-indicator::before {
    content: '';
    position: absolute;
    height: 100%;
    background: var(--primary-gradient);
    width: 0%;
    animation: loading 1.5s infinite ease-in-out;
}

@keyframes loading {
    0% {
        width: 0%;
        left: 0;
    }
    50% {
        width: 30%;
        left: 35%;
    }
    100% {
        width: 0%;
        left: 100%;
    }
}

.password-toggle {
    position: relative;
}

.password-toggle i {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.legal-links {
    margin-top: 2rem;
    font-size: 0.8rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    padding-top: 1.5rem;
}

.legal-links::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}

.legal-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: none;
}

.legal-links a:hover::after {
    width: 100%;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.version-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

/* Nuevos estilos para los iconos de características */
.feature-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.analytics-icon, .ai-icon, .management-icon {
    fill: url(#gradient);
}
