
:root {
    --primary-gradient: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    --success-gradient: linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
    --error-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --dark-gradient: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-primary: #2C3E50;
    --text-secondary: #7F8C8D;
    --text-light: rgba(255, 255, 255, 0.9);
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-strong: 0 30px 80px rgba(0, 0, 0, 0.2);
    
    /* REDUCIR EL ZOOM O TAMAÑO DE TODO EL HTML */
    font-size: 95%; 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.user-container {
    display: flex;
    height: 100vh;
    position: relative;
    
}

/* Panel Izquierdo */
.left-panel-user {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 50px;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    height: 100vh;
    
}

.background-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.floating-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.orb-1 { width: 200px; height: 200px; top: 10%; left: 10%; animation-delay: 0s; }
.orb-2 { width: 150px; height: 150px; top: 60%; left: 70%; animation-delay: 2s; }
.orb-3 { width: 100px; height: 100px; top: 30%; left: 80%; animation-delay: 4s; }
.orb-4 { width: 80px; height: 80px; top: 80%; left: 20%; animation-delay: 1s; }
.orb-5 { width: 120px; height: 120px; top: 50%; left: 50%; animation-delay: 3s; }

.gradient-mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 8s ease-in-out infinite;
}

.mesh-1 { width: 300px; height: 300px; top: 20%; left: 60%; background: rgba(240, 157, 251, 0.4); animation-delay: 0s; }
.mesh-2 { width: 200px; height: 200px; top: 70%; left: 10%; background: rgba(79, 172, 254, 0.3); animation-delay: 2s; }
.mesh-3 { width: 250px; height: 250px; top: 40%; left: 30%; background: rgba(255, 255, 255, 0.2); animation-delay: 4s; }

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 4s ease-in-out infinite;
}

.sparkle-1 { top: 20%; left: 25%; animation-delay: 0s; }
.sparkle-2 { top: 40%; left: 60%; animation-delay: 1s; }
.sparkle-3 { top: 70%; left: 40%; animation-delay: 2s; }
.sparkle-4 { top: 30%; left: 15%; animation-delay: 3s; }
.sparkle-5 { top: 60%; left: 80%; animation-delay: 1.5s; }
.sparkle-6 { top: 80%; left: 65%; animation-delay: 2.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

@keyframes sparkle {
    0%, 100% { opacity: 0; transform: scale(0); }
    50% { opacity: 1; transform: scale(1); }
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
}

.brand-section {
    margin-bottom: 2rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.logo-pulse {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

.logo-pulse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
    margin: 0;
}

.brand-name .accent {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.hero-title {
    font-size: 2.35rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.0rem;
    color: var(--text-light);
    line-height: 1.6;
    opacity: 0.9;
}

.features-showcase {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInLeft 0.8s ease forwards;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: rgb(255, 255, 255);
    position: relative;
    z-index: 2;
}

.feature-icon i {
    font-size: 24px;
    color: #ffffff;
}

.feature-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    border-radius: 12px;
    filter: blur(10px);
    opacity: 0.5;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; }
    100% { opacity: 0.8; }
}

.feature-content h3 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.feature-content p {
    color: var(--text-light);
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.trust-indicators {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    font-size: 0.85rem;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-icon {
    font-size: 1rem;
    color: #4facfe;
}

@keyframes slideInLeft {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Panel Derecho */
.right-panel-user {
    flex: 0 0 750px; /*     Hancho del contenedor de login */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    height: 100vh;
    overflow:hidden;
}

.login-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.circle-1 { width: 200px; height: 200px; top: -50px; right: -50px; }
.circle-2 { width: 150px; height: 150px; bottom: -30px; left: -30px; }
.circle-3 { width: 100px; height: 100px; top: 30%; left: 20%; }

.decoration-line {
    position: absolute;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-radius: 2px;
}

.line-1 { width: 100px; height: 2px; top: 20%; right: 10%; transform: rotate(45deg); }
.line-2 { width: 80px; height: 2px; bottom: 30%; left: 15%; transform: rotate(-45deg); }

.login-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
}

.login-card-user {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    transform: translateY(20px);
    opacity: 0;
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.3s;
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
}

@keyframes slideInUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.login-header-user {
    text-align: center;
    margin-bottom: 2rem;
}

.header-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
}

.icon-container {
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    position: relative;
    z-index: 2;
}

.icon-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: var(--primary-gradient);
    animation: pulse-ring 2s ease-out infinite;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.error-alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 1px solid #fca5a5;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.error-icon {
    color: #dc2626;
    font-size: 1.2rem;
}

.error-content strong {
    color: #dc2626;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.error-content p {
    color: #b91c1c;
    font-size: 0.9rem;
    margin: 0;
}

.login-form-user {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group-user {
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    background: white;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.input-field:focus {
    outline: none;
    border-color: transparent;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field:focus + .input-border {
    transform: scaleX(1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    border-radius: 0 0 12px 12px;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
    z-index: 3;
}

.input-field:focus ~ .input-icon {
    color: #667eea;
}

.password-toggle-user {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 3;
}

.password-toggle-user:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}

.login-button-user {
    position: relative;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

.button-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
}

.login-button-user:hover .button-background {
    background: linear-gradient(135deg, #5a67d8 0%, #6c5ce7 100%);
    transform: translateY(-2px);
}

.login-button-user:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.button-content {
    position: relative;
    z-index: 2;
}

.button-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.login-button-user.loading .button-text {
    display: none;
}

.login-button-user.loading .button-loader {
    display: flex;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-footer {
    margin-top: 2rem;
    text-align: center;
}

.footer-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-divider span {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.footer-divider p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: 0;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.security-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.security-badge i {
    color: #10b981;
}

.page-transition-user {
    position: fixed;
    top: 0;
    right: 100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    z-index: 9999;
    transition: right 0.5s ease;
}

.page-transition-user.active {
    right: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
    }
    
    .user-container {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }
    
    .left-panel-user {
        height: auto;
        min-height: 60vh;
        padding: 2rem 1rem;
    }
    
    .right-panel-user {
        flex: 1;
        height: auto;
        min-height: 40vh;
        overflow-y: visible;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-showcase {
        gap: 0.75rem;
        margin: 1.5rem 0;
    }
    
    .feature-card {
        padding: 0.75rem;
    }
    
    .login-card-user {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 768px) {
    .user-container {
        flex-direction: row;
        height: 100vh;
    }
    
    .left-panel-user {
        display: none;
    }
    
    .right-panel-user {
        flex: 1;
        width: 100%;
        padding: 1rem;
        height: 100vh;
        overflow-y: auto;
    }
    
    .login-card-user {
        padding: 1.5rem;
        margin: 2rem 0;
        max-height: none;
        overflow-y: visible;
        width: 100%;
        max-width: 400px;
    }
}