:root {
    --pc-bg-main: #0f172a;
    --pc-bg-panel: #1e293b;
    --pc-primary: #8b5cf6;
    --pc-primary-dark: #7c3aed;
    --pc-text-primary: #f8fafc;
    --pc-text-secondary: #cbd5e1;
    --pc-border: #334155;
    --pc-radius: 12px;
    --pc-shadow-xl: 0 25px 50px rgba(0,0,0,.4);
    --pc-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pc-auth-body {
    margin: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', 'Inter', sans-serif;
    background: var(--pc-bg-main);
    color: var(--pc-text-primary);
    overflow-x: hidden;
    position: relative;
}

.pc-auth-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Split layout mejorado - responsive sin scroll horizontal */
.pc-auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Lado izquierdo - diseño elegante */
.pc-auth-left {
    flex: 1;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pc-auth-left-content {
    z-index: 2;
    text-align: center;
    max-width: 450px;
    width: 90%;
    padding: 2rem;
    position: relative;
}

/* Brand mejorado - más profesional */
.pc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 24px;
    background: rgba(30, 41, 59, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--pc-transition);
}

.pc-brand-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.pc-brand-icon-inner {
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.pc-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.pc-brand-main {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.pc-brand-sub {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    letter-spacing: 2px;
    color: var(--pc-primary);
    margin-top: 0.35rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

.pc-brand-slogan {
    margin-top: 2rem;
    color: var(--pc-text-secondary);
    font-size: clamp(0.95rem, 3vw, 1.1rem);
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Background shapes elegantes */
.pc-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    pointer-events: none;
}

.pc-shape-1 { 
    width: 400px; 
    height: 400px; 
    background: var(--pc-primary); 
    top: -150px; 
    left: -150px; 
}

.pc-shape-2 { 
    width: 350px; 
    height: 350px; 
    background: #0ea5e9; 
    bottom: -150px; 
    right: -150px; 
}

.pc-shape-3 { 
    width: 300px; 
    height: 300px; 
    background: #10b981; 
    top: 40%; 
    left: 20%;
}

/* Partículas sutiles */
.pc-particles-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.pc-particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Lado derecho - formulario */
.pc-auth-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-bg-main);
    position: relative;
    padding: 2rem;
}

/* Tarjeta de login mejorada - sin desplazamiento */
.pc-login-card {
    width: 100%;
    max-width: 440px;
    background: var(--pc-bg-panel);
    border-radius: 28px;
    box-shadow: var(--pc-shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: clamp(1.5rem, 5vw, 3rem);
    transition: var(--pc-transition);
    position: relative;
    z-index: 2;
}

/* Formulario mejorado */
.pc-form-group {
    margin-bottom: 1.8rem;
}

.pc-form-label {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--pc-text-secondary);
    align-items: center;
    font-weight: 500;
}

.pc-input-group {
    position: relative;
}

.pc-input-group input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 16px;
    border: 1.5px solid var(--pc-border);
    background: rgba(30, 41, 59, 0.5);
    color: white;
    font-size: 1rem;
    transition: var(--pc-transition);
    outline: none;
}

.pc-input-group input:focus {
    border-color: var(--pc-primary);
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
}

.pc-input-group input::placeholder {
    color: #64748b;
}

.pc-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pc-text-secondary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: var(--pc-transition);
}

.pc-input-group input:focus + .pc-input-icon {
    color: var(--pc-primary);
}

/* Toggle de contraseña mejorado */
.pc-password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--pc-text-secondary);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.5rem;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pc-transition);
    border-radius: 8px;
}

.pc-password-toggle:hover {
    color: var(--pc-primary);
    background: rgba(139, 92, 246, 0.1);
}

/* Checkbox mejorado */
.pc-form-check-wrapper {
    margin-bottom: 2rem;
}

.pc-form-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    width: fit-content;
}

.pc-form-check input {
    display: none;
}

.pc-checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--pc-border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pc-transition);
    flex-shrink: 0;
    background: rgba(30, 41, 59, 0.5);
}

.pc-form-check input:checked + .pc-checkmark {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
}

.pc-checkmark i {
    color: white;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pc-form-check input:checked + .pc-checkmark i {
    opacity: 1;
}

.pc-check-label {
    color: var(--pc-text-secondary);
    font-size: 0.9rem;
    user-select: none;
    transition: var(--pc-transition);
}

.pc-form-check:hover .pc-check-label {
    color: var(--pc-text-primary);
}

/* Botón de login mejorado - sin efectos de mouse excesivos */
.pc-btn-login {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: var(--pc-transition);
    font-size: 1rem;
}

/* Efecto de brillo suave */
.pc-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.pc-btn-login:hover .pc-btn-shine {
    left: 100%;
}

.pc-btn-login:active {
    transform: scale(0.98);
}

.pc-btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.pc-btn-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Spinner mejorado */
.pc-loading-spinner {
    position: absolute;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 2;
}

.pc-spinner-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: spinner-bounce 1.4s infinite ease-in-out both;
}

.pc-spinner-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.pc-spinner-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes spinner-bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive perfecto - sin scroll horizontal en ningún zoom */
@media (max-width: 968px) {
    .pc-auth-split {
        flex-direction: column;
    }
    
    .pc-auth-left,
    .pc-auth-right {
        width: 100%;
        min-height: auto;
    }
    
    .pc-auth-left {
        min-height: 40vh;
        padding: 2rem;
    }
    
    .pc-auth-right {
        min-height: 60vh;
        padding: 2rem;
    }
    
    .pc-login-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .pc-brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pc-brand-text {
        align-items: center;
    }
    
    .pc-brand-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .pc-brand-main {
        white-space: normal;
        font-size: 1.8rem;
    }
    
    .pc-brand-sub {
        white-space: normal;
        font-size: 0.85rem;
    }
    
    .pc-login-card {
        padding: 1.5rem;
    }
    
    .pc-input-group input {
        font-size: 0.95rem;
        padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    }
}

@media (max-width: 480px) {
    .pc-auth-left {
        padding: 1rem;
        min-height: 35vh;
    }
    
    .pc-auth-right {
        padding: 1rem;
        min-height: 65vh;
    }
    
    .pc-login-card {
        padding: 1.25rem;
    }
    
    .pc-brand-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        border-radius: 16px;
    }
    
    .pc-brand-main {
        font-size: 1.5rem;
    }
    
    .pc-brand-slogan {
        font-size: 0.85rem;
        margin-top: 1rem;
    }
    
    .pc-form-group {
        margin-bottom: 1.2rem;
    }
    
    .pc-form-label {
        font-size: 0.85rem;
    }
    
    .pc-input-group input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
    
    .pc-btn-login {
        height: 46px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

@media (min-width: 1920px) {
    .pc-login-card {
        max-width: 480px;
        padding: 3rem;
    }
    
    .pc-auth-left-content {
        max-width: 500px;
    }
}

html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.pc-auth-body {
    overflow-x: hidden;
    width: 100%;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-login-card {
    animation: fadeInUp 0.6s ease-out;
}