:root {
    --pc-bg-main: #0a0c10;
    --pc-bg-panel: #13161c;
    --pc-primary: #3b82f6;
    --pc-primary-dark: #2563eb;
    --pc-primary-light: #60a5fa;
    --pc-secondary: #10b981;
    --pc-text-primary: #ffffff;
    --pc-text-secondary: #94a3b8;
    --pc-text-muted: #64748b;
    --pc-border: #1e293b;
    --pc-border-light: #334155;
    --pc-radius-sm: 8px;
    --pc-radius-md: 12px;
    --pc-radius-lg: 16px;
    --pc-radius-xl: 24px;
    --pc-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --pc-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --pc-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --pc-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.25);
    --pc-transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --pc-transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --pc-transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pc-auth-body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--pc-bg-main);
    color: var(--pc-text-primary);
    overflow-x: hidden;
    position: relative;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pc-auth-layout {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Grid Pattern Background */
.pc-auth-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--pc-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--pc-border) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    pointer-events: none;
}

/* Split Layout Premium */
.pc-auth-split {
    display: flex;
    width: 100%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Lado izquierdo - Hero Section */
.pc-auth-left {
    flex: 1.2;
    background: linear-gradient(145deg, #0f1117 0%, #1a1f2e 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pc-auth-left::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.pc-auth-left-content {
    z-index: 2;
    text-align: center;
    max-width: 500px;
    width: 90%;
    padding: 2.5rem;
    position: relative;
}

/* Brand Premium */
.pc-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: var(--pc-radius-xl);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--pc-transition-base);
}

.pc-brand-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--pc-primary), var(--pc-primary-dark));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    flex-shrink: 0;
    transition: var(--pc-transition-base);
}

.pc-brand:hover .pc-brand-icon {
    transform: scale(1.02);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

.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.1;
}

.pc-brand-main {
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

.pc-brand-sub {
    font-size: clamp(0.85rem, 2vw, 1rem);
    letter-spacing: 3px;
    background: linear-gradient(135deg, var(--pc-primary-light), var(--pc-primary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-top: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Slogan mejorado */
.pc-brand-slogan {
    margin-top: 2rem;
    color: var(--pc-text-secondary);
    font-size: clamp(1rem, 3vw, 1.125rem);
    line-height: 1.7;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
    font-weight: 400;
}

.pc-brand-slogan strong {
    color: var(--pc-primary-light);
    font-weight: 600;
}

/* Stats Section */
.pc-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.pc-stat {
    text-align: center;
}

.pc-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pc-primary-light);
    display: block;
    margin-bottom: 0.25rem;
}

.pc-stat-label {
    font-size: 0.75rem;
    color: var(--pc-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Background Shapes Mejorados */
.pc-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.08;
    pointer-events: none;
}

.pc-shape-1 { 
    width: 500px; 
    height: 500px; 
    background: var(--pc-primary); 
    top: -200px; 
    left: -200px; 
}

.pc-shape-2 { 
    width: 400px; 
    height: 400px; 
    background: var(--pc-secondary); 
    bottom: -150px; 
    right: -150px; 
    opacity: 0.05;
}

.pc-shape-3 { 
    width: 350px; 
    height: 350px; 
    background: #8b5cf6; 
    top: 50%; 
    left: 30%;
    opacity: 0.04;
}

/* Lado derecho - Formulario Premium */
.pc-auth-right {
    flex: 0.8;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-bg-panel);
    position: relative;
    padding: 2rem;
}

/* Tarjeta de login premium */
.pc-login-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(145deg, rgba(19, 22, 28, 0.9), rgba(15, 17, 23, 0.95));
    border-radius: var(--pc-radius-xl);
    box-shadow: var(--pc-shadow-xl), 0 0 0 1px rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(1.5rem, 5vw, 2.5rem);
    transition: var(--pc-transition-base);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px);
}

.pc-login-card:hover {
    box-shadow: 0 25px 35px -12px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Card Header */
.pc-card-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pc-card-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #94a3b8);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.pc-card-subtitle {
    color: var(--pc-text-secondary);
    font-size: 0.875rem;
}

/* Form Groups Premium */
.pc-form-group {
    margin-bottom: 1.5rem;
}

.pc-form-label {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--pc-text-secondary);
    align-items: center;
}

.pc-input-group {
    position: relative;
}

.pc-input-group input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border-radius: var(--pc-radius-md);
    border: 1.5px solid var(--pc-border);
    background: rgba(10, 12, 16, 0.6);
    color: var(--pc-text-primary);
    font-size: 0.9375rem;
    transition: var(--pc-transition-fast);
    outline: none;
    font-weight: 400;
}

.pc-input-group input:focus {
    border-color: var(--pc-primary);
    background: rgba(10, 12, 16, 0.9);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.pc-input-group input::placeholder {
    color: var(--pc-text-muted);
    font-weight: 400;
}

.pc-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pc-text-muted);
    font-size: 1rem;
    pointer-events: none;
    transition: var(--pc-transition-fast);
}

.pc-input-group input:focus + .pc-input-icon {
    color: var(--pc-primary);
}

/* Password Toggle Mejorado */
.pc-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--pc-text-muted);
    cursor: pointer;
    font-size: 1rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pc-transition-fast);
    border-radius: var(--pc-radius-sm);
}

.pc-password-toggle:hover {
    color: var(--pc-primary);
    background: rgba(59, 130, 246, 0.1);
}

/* Checkbox Premium */
.pc-form-check-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-form-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
}

.pc-form-check input {
    display: none;
}

.pc-checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--pc-border-light);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--pc-transition-fast);
    flex-shrink: 0;
    background: rgba(10, 12, 16, 0.6);
}

.pc-form-check input:checked + .pc-checkmark {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
}

.pc-checkmark i {
    color: white;
    font-size: 10px;
    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.875rem;
    user-select: none;
    transition: var(--pc-transition-fast);
    font-weight: 500;
}

.pc-form-check:hover .pc-check-label {
    color: var(--pc-text-primary);
}

.pc-forgot-link {
    color: var(--pc-primary-light);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--pc-transition-fast);
}

.pc-forgot-link:hover {
    color: var(--pc-primary);
    text-decoration: underline;
}

/* Botón de Login Premium */
.pc-btn-login {
    width: 100%;
    height: 48px;
    border-radius: var(--pc-radius-md);
    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-base);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.pc-btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        transparent
    );
    transition: left 0.6s 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;
    transform: none;
}

.pc-btn-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    transition: opacity 0.3s ease;
}

/* Spinner Moderno */
.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;
    }
}

/* Footer del Formulario */
.pc-auth-footer {
    text-align: center;
    color: var(--pc-text-muted);
    font-size: 0.8125rem;
}

.pc-auth-footer a {
    color: var(--pc-primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--pc-transition-fast);
}

.pc-auth-footer a:hover {
    color: var(--pc-primary);
    text-decoration: underline;
}

/* Divider */
.pc-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--pc-text-muted);
    font-size: 0.75rem;
}

.pc-divider::before,
.pc-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--pc-border);
}

.pc-divider::before {
    margin-right: 1rem;
}

.pc-divider::after {
    margin-left: 1rem;
}

/* Social Login */
.pc-social-login {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.pc-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: var(--pc-radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--pc-border);
    color: var(--pc-text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--pc-transition-fast);
}

.pc-social-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--pc-border-light);
    color: var(--pc-text-primary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.pc-login-card {
    animation: fadeInUp 0.5s ease-out;
}

.pc-auth-left-content {
    animation: fadeIn 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .pc-auth-left {
        flex: 1;
    }
    
    .pc-auth-right {
        flex: 1;
    }
}

@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: 45vh;
        padding: 2rem;
    }
    
    .pc-auth-right {
        min-height: 55vh;
        padding: 2rem;
    }
    
    .pc-login-card {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pc-stats {
        display: none;
    }
}

@media (max-width: 768px) {
    .pc-brand {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .pc-brand-text {
        align-items: center;
    }
    
    .pc-brand-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
        border-radius: 16px;
    }
    
    .pc-brand-main {
        white-space: normal;
        font-size: 1.75rem;
    }
    
    .pc-brand-sub {
        white-space: normal;
        font-size: 0.875rem;
        letter-spacing: 2px;
    }
    
    .pc-login-card {
        padding: 1.5rem;
    }
    
    .pc-card-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .pc-auth-left {
        padding: 1rem;
        min-height: 40vh;
    }
    
    .pc-auth-right {
        padding: 1rem;
        min-height: 60vh;
    }
    
    .pc-login-card {
        padding: 1.25rem;
        border-radius: 20px;
    }
    
    .pc-brand-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        border-radius: 14px;
    }
    
    .pc-brand-main {
        font-size: 1.5rem;
    }
    
    .pc-brand-slogan {
        font-size: 0.875rem;
        margin-top: 1.5rem;
    }
    
    .pc-card-title {
        font-size: 1.25rem;
    }
    
    .pc-card-subtitle {
        font-size: 0.75rem;
    }
    
    .pc-form-group {
        margin-bottom: 1rem;
    }
    
    .pc-form-label {
        font-size: 0.8125rem;
    }
    
    .pc-input-group input {
        padding: 0.75rem 0.875rem 0.75rem 2.5rem;
        font-size: 0.875rem;
        border-radius: 10px;
    }
    
    .pc-btn-login {
        height: 44px;
        font-size: 0.875rem;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
    
    .pc-form-check-wrapper {
        margin-bottom: 1.25rem;
    }
    
    .pc-social-btn {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
}

@media (min-width: 1920px) {
    .pc-login-card {
        max-width: 480px;
        padding: 3rem;
    }
    
    .pc-auth-left-content {
        max-width: 550px;
    }
    
    .pc-brand-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 24px;
    }
    
    .pc-brand-main {
        font-size: 2.5rem;
    }
    
    .pc-brand-sub {
        font-size: 1.125rem;
    }
}

/* Utilidades */
html, body {
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

.pc-auth-body {
    overflow-x: hidden;
    width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pc-bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--pc-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pc-border-light);
}