/* ===================================
   Vuexy-Inspired Login Page Styles
   =================================== */

/* CSS Variables */
:root {
    /* Primary Colors - Vuexy Purple Theme */
    --primary: #7367F0;
    --primary-dark: #5E50EE;
    --primary-light: #9E95F5;
    --primary-lighter: #E7E5FF;

    /* Grayscale */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --warning: #F59E0B;

    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-5: 1.25rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container Principal */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    overflow: hidden;
}

/* ===================================
   COLUMNA IZQUIERDA - BRANDING
   =================================== */

.branding-section {
    flex: 1;
    background: linear-gradient(135deg, #7367F0 0%, #9055FF 50%, #B44BFF 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: var(--spacing-12);
    overflow: hidden;
}

/* Pattern Overlay */
.branding-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.branding-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
    pointer-events: none;
}

.branding-content {
    position: relative;
    z-index: 1;
}

/* Logo Section */
.brand-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-8);
}

.brand-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: var(--spacing-3);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.brand-icon svg,
.brand-icon i {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.brand-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
}

/* Hero Content */
.brand-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: var(--spacing-6);
    letter-spacing: -0.02em;
}

.brand-hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 32rem;
}

/* Testimonial Card */
.brand-testimonial {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--spacing-6);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    display: flex;
    gap: var(--spacing-4);
}

.testimonial-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.testimonial-icon svg,
.testimonial-icon i {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.testimonial-text p {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
    margin-bottom: var(--spacing-3);
    line-height: 1.6;
}

.testimonial-author {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 0.875rem;
}

/* ===================================
   COLUMNA DERECHA - FORMULARIO
   =================================== */

.form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8);
    background: white;
}

.form-container {
    width: 100%;
    max-width: 28rem;
}

/* Mobile Logo */
.mobile-logo {
    display: none;
    align-items: center;
    gap: var(--spacing-3);
    margin-bottom: var(--spacing-8);
}

.mobile-logo .brand-icon {
    background: var(--primary);
    padding: var(--spacing-2);
}

.mobile-logo .brand-name {
    color: var(--gray-900);
}

/* Form Header */
.form-header {
    margin-bottom: var(--spacing-8);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--spacing-2);
    letter-spacing: -0.02em;
}

.form-header p {
    color: var(--gray-500);
    font-size: 1rem;
}

/* Alert Messages */
.alert {
    padding: var(--spacing-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-6);
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: var(--danger-light);
    border: 1px solid #FECACA;
    color: #991B1B;
}

.alert-loading {
    background: var(--primary-lighter);
    border: 1px solid #C7D2FE;
    color: #3730A3;
}

.alert svg,
.alert i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.alert p {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Loading Spinner */
.spinner {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Privacy Consent */
.privacy-consent {
    margin-bottom: var(--spacing-6);
    display: flex;
    align-items: start;
    gap: var(--spacing-3);
}

.privacy-consent input[type="checkbox"] {
    width: 1.125rem;
    height: 1.125rem;
    margin-top: 0.125rem;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.privacy-consent input[type="checkbox"]:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.privacy-consent input[type="checkbox"]:focus {
    outline: 2px solid var(--primary-lighter);
    outline-offset: 2px;
}

.privacy-label {
    font-size: 0.875rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.privacy-label a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.privacy-label a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.privacy-note {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: var(--spacing-1);
}

/* Google Sign-In Container */
.google-signin-wrapper {
    position: relative;
    margin-bottom: var(--spacing-8);
}

.google-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(2px);
    cursor: not-allowed;
    border-radius: var(--radius-md);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-overlay.hidden {
    display: none;
}

/* Divider */
.divider {
    position: relative;
    margin: var(--spacing-8) 0;
}

.divider-line {
    border-top: 1px solid var(--gray-200);
}

.divider-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 0 var(--spacing-4);
    font-size: 0.875rem;
    color: var(--gray-400);
    white-space: nowrap;
}

/* Features List */
.features-list {
    padding-top: var(--spacing-4);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    color: var(--gray-600);
    font-size: 0.875rem;
}

.feature-icon {
    width: 1.25rem;
    height: 1.25rem;
    background: var(--success-light);
    color: var(--success);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg,
.feature-icon i {
    width: 0.75rem;
    height: 0.75rem;
}

/* CTA Link */
.cta-link {
    margin-top: var(--spacing-8);
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.cta-link a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.cta-link a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Footer */
.form-footer {
    margin-top: var(--spacing-8);
    padding-top: var(--spacing-6);
    border-top: 1px solid var(--gray-100);
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-400);
}

.form-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.form-footer a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .branding-section {
        display: none;
    }

    .mobile-logo {
        display: flex;
    }

    .form-section {
        padding: var(--spacing-6);
    }
}

@media (max-width: 640px) {
    .form-header h2 {
        font-size: 1.75rem;
    }

    .form-section {
        padding: var(--spacing-4);
    }

    .brand-hero h1 {
        font-size: 2.25rem;
    }

    .brand-hero p {
        font-size: 1rem;
    }
}

/* ===================================
   UTILITIES
   =================================== */

.hidden {
    display: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}