/* Extraído desde templates/login.html — 1 bloque(s), ~2053 líneas
   Cache-busting via vstatic(). Generado por extract_inline_css.py */

/* ============================================
       MEDEXPERT PRO - LOGIN
       Luxury Medical Intelligence Platform
       Original Color Scheme - Enhanced Design
       ============================================ */

    :root {
        /* Paleta Original MedExpert - Mejorada */
        --brand-primary: #6366f1;
        --brand-secondary: #8b5cf6;
        --brand-tertiary: #a78bfa;
        --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
        --brand-gradient-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #8b5cf6 100%);
        --brand-light: #eef2ff;
        --brand-dark: #4f46e5;
        --brand-glow: rgba(99, 102, 241, 0.5);
        
        /* Fondos Premium */
        --bg-deep: #0f0f23;
        --bg-card: #16162a;
        --bg-card-hover: #1e1e3a;
        --bg-input: rgba(255, 255, 255, 0.03);
        --bg-input-focus: rgba(99, 102, 241, 0.08);
        
        /* Glass Effect */
        --glass-bg: rgba(22, 22, 42, 0.85);
        --glass-border: rgba(99, 102, 241, 0.2);
        --glass-highlight: rgba(139, 92, 246, 0.1);
        
        /* Textos */
        --text-white: #ffffff;
        --text-primary: #f1f5f9;
        --text-secondary: #94a3b8;
        --text-muted: #64748b;
        
        /* Bordes */
        --border-subtle: rgba(99, 102, 241, 0.15);
        --border-active: rgba(99, 102, 241, 0.5);
        
        /* Sombras */
        --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.3);
        --shadow-card: 0 25px 80px -20px rgba(0, 0, 0, 0.5);
        --shadow-button: 0 8px 30px rgba(99, 102, 241, 0.4);
        
        /* Colores de modelos IA */
        --claude-color: #8b5cf6;
        --gpt-color: #10b981;
        --gemini-color: #ec4899;
        --grok-color: #f59e0b;
        --deepseek-color: #06b6d4;
        --perplexity-color: #6366f1;
        --qwen-color: #615ced;
        
        /* Transiciones */
        --ease-premium: cubic-bezier(0.23, 1, 0.32, 1);
        --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
        
        /* Typography */
        --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
        --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
    }

    *, *::before, *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    /* ============================================
       ALERTA DE SESIÓN EXPIRADA
       ============================================ */
    
    .session-expired-alert {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, rgba(245, 158, 11, 0.95) 0%, rgba(234, 88, 12, 0.95) 100%);
        backdrop-filter: blur(10px);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1rem;
        animation: alertSlideDown 0.5s var(--ease-bounce) forwards;
        box-shadow: 0 4px 30px rgba(245, 158, 11, 0.4);
    }

    @keyframes alertSlideDown {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .session-expired-alert .alert-icon {
        width: 44px;
        height: 44px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        animation: iconPulse 2s ease-in-out infinite;
    }

    @keyframes iconPulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.1); }
    }

    .session-expired-alert .alert-icon i {
        font-size: 1.3rem;
        color: white;
    }

    .session-expired-alert .alert-content {
        flex: 1;
        max-width: 600px;
    }

    .session-expired-alert .alert-title {
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 700;
        color: white;
        margin-bottom: 0.25rem;
    }

    .session-expired-alert .alert-message {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.4;
    }

    .session-expired-alert .alert-close {
        background: rgba(255, 255, 255, 0.2);
        border: none;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: white;
        font-size: 1rem;
    }

    .session-expired-alert .alert-close:hover {
        background: rgba(255, 255, 255, 0.3);
        transform: rotate(90deg);
    }

    /* Responsive */
    @media (max-width: 600px) {
        .session-expired-alert {
            padding: 0.75rem 1rem;
            flex-wrap: wrap;
        }
        
        .session-expired-alert .alert-icon {
            width: 36px;
            height: 36px;
        }
        
        .session-expired-alert .alert-title {
            font-size: 0.9rem;
        }
        
        .session-expired-alert .alert-message {
            font-size: 0.8rem;
        }
    }

    .login-page {
        height: 100vh;
        height: 100dvh;
        background: var(--bg-deep);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        overflow: hidden;
        padding: 0.5rem;
        font-family: var(--font-body);
    }

    /* ============================================
       ANIMATED BACKGROUND
       ============================================ */
    
    .bg-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
        overflow: hidden;
    }

    /* Gradient Orbs */
    .gradient-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(80px);
        opacity: 0.5;
        animation: orbFloat 20s ease-in-out infinite;
    }

    .orb-1 {
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
        top: -200px;
        left: -200px;
        animation-delay: 0s;
    }

    .orb-2 {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
        bottom: -150px;
        right: -150px;
        animation-delay: -7s;
    }

    .orb-3 {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, var(--brand-tertiary) 0%, transparent 70%);
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        animation-delay: -14s;
        opacity: 0.3;
    }

    @keyframes orbFloat {
        0%, 100% { transform: translate(0, 0) scale(1); }
        25% { transform: translate(30px, -30px) scale(1.1); }
        50% { transform: translate(-20px, 20px) scale(0.95); }
        75% { transform: translate(20px, 30px) scale(1.05); }
    }

    .orb-3 {
        animation-name: orbFloatCenter;
    }

    @keyframes orbFloatCenter {
        0%, 100% { transform: translate(-50%, -50%) scale(1); }
        25% { transform: translate(-45%, -55%) scale(1.1); }
        50% { transform: translate(-55%, -45%) scale(0.95); }
        75% { transform: translate(-48%, -52%) scale(1.05); }
    }

    /* Grid Pattern */
    .grid-pattern {
        position: absolute;
        width: 100%;
        height: 100%;
        background-image: 
            linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
        background-size: 50px 50px;
        mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
        -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    }

    /* Floating Particles */
    .particles-container {
        position: absolute;
        width: 100%;
        height: 100%;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        width: 4px;
        height: 4px;
        background: var(--brand-primary);
        border-radius: 50%;
        opacity: 0.3;
        animation: particleFloat 15s linear infinite;
    }

    @keyframes particleFloat {
        0% {
            transform: translateY(100vh) rotate(0deg);
            opacity: 0;
        }
        10% {
            opacity: 0.5;
        }
        90% {
            opacity: 0.5;
        }
        100% {
            transform: translateY(-100vh) rotate(720deg);
            opacity: 0;
        }
    }

    /* ============================================
       MAIN LOGIN CONTAINER
       ============================================ */

    .login-wrapper {
        display: flex;
        width: 100%;
        max-width: 1120px;
        height: 100%;
        max-height: 720px;
        margin: 0 auto;
        position: relative;
        z-index: 10;
        animation: wrapperReveal 1s var(--ease-premium) forwards;
        opacity: 0;
    }

    @keyframes wrapperReveal {
        from {
            opacity: 0;
            transform: translateY(40px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* ============================================
       LEFT PANEL - BRANDING
       ============================================ */

    .brand-panel {
        flex: 1;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-right: none;
        border-radius: 32px 0 0 32px;
        padding: 1.75rem 2.25rem;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: relative;
        overflow: hidden;
        min-height: 0;
    }

    .brand-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--brand-primary), transparent);
        opacity: 0.5;
    }

    .brand-panel::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle at 30% 30%, var(--glass-highlight) 0%, transparent 50%);
        pointer-events: none;
    }

    /* Brand Header */
    .brand-header {
        position: relative;
        z-index: 2;
    }

    .brand-logo-row {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .brand-logo {
        width: 55px;
        height: 55px;
        object-fit: contain;
        filter: drop-shadow(0 0 20px var(--brand-glow));
        animation: logoPulse 3s ease-in-out infinite;
    }

    @keyframes logoPulse {
        0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--brand-glow)); }
        50% { transform: scale(1.05); filter: drop-shadow(0 0 30px var(--brand-glow)); }
    }

    .brand-badge {
        background: var(--brand-gradient);
        color: white;
        font-size: 0.65rem;
        font-weight: 700;
        letter-spacing: 0.15em;
        padding: 0.5rem 1rem;
        border-radius: 30px;
        text-transform: uppercase;
        box-shadow: var(--shadow-button);
        animation: badgeGlow 2s ease-in-out infinite alternate;
    }

    @keyframes badgeGlow {
        from { box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3); }
        to { box-shadow: 0 4px 30px rgba(139, 92, 246, 0.5); }
    }

    .brand-title {
        font-family: var(--font-display);
        font-size: 2.25rem;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 0.5rem;
        background: var(--brand-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .brand-subtitle {
        font-size: 0.9rem;
        color: var(--text-secondary);
        line-height: 1.6;
        max-width: 400px;
    }

    /* Features Section */
    .features-section {
        position: relative;
        z-index: 2;
        margin: 1.5rem 0;
    }

    .feature-card {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
        margin-bottom: 0.6rem;
        background: var(--bg-input);
        border: 1px solid var(--border-subtle);
        border-radius: 14px;
        transition: all 0.4s var(--ease-premium);
        cursor: default;
        opacity: 0;
        transform: translateX(-20px);
        animation: featureSlide 0.6s var(--ease-premium) forwards;
    }

    .feature-card:nth-child(1) { animation-delay: 0.3s; }
    .feature-card:nth-child(2) { animation-delay: 0.45s; }
    .feature-card:nth-child(3) { animation-delay: 0.6s; }

    @keyframes featureSlide {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .feature-card:hover {
        background: var(--glass-highlight);
        border-color: var(--brand-primary);
        transform: translateX(10px);
        box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    }

    .feature-icon {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--brand-gradient);
        border-radius: 12px;
        color: white;
        font-size: 1.1rem;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
        transition: transform 0.3s var(--ease-bounce);
    }

    .feature-card:hover .feature-icon {
        transform: scale(1.1) rotate(5deg);
    }

    .feature-text h4 {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.15rem;
    }

    .feature-text p {
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    /* AI Models */
    .ai-section {
        position: relative;
        z-index: 2;
    }

    .ai-label {
        font-size: 0.65rem;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.2em;
        margin-bottom: 0.6rem;
    }

    .ai-chips {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .ai-chip {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.45rem 0.8rem;
        background: var(--bg-input);
        border: 1px solid var(--border-subtle);
        border-radius: 30px;
        font-size: 0.75rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: all 0.3s var(--ease-premium);
        cursor: default;
        opacity: 0;
        transform: scale(0.8);
        animation: chipPop 0.5s var(--ease-bounce) forwards;
    }

    .ai-chip:nth-child(1) { animation-delay: 0.6s; }
    .ai-chip:nth-child(2) { animation-delay: 0.7s; }
    .ai-chip:nth-child(3) { animation-delay: 0.8s; }
    .ai-chip:nth-child(4) { animation-delay: 0.9s; }
    .ai-chip:nth-child(5) { animation-delay: 1.0s; }
    .ai-chip:nth-child(6) { animation-delay: 1.1s; }

    @keyframes chipPop {
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .ai-chip:hover {
        transform: translateY(-4px) scale(1.05);
        border-color: var(--brand-primary);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .ai-chip .indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        animation: indicatorPulse 2s ease-in-out infinite;
    }

    @keyframes indicatorPulse {
        0%, 100% { opacity: 0.5; transform: scale(1); }
        50% { opacity: 1; transform: scale(1.3); }
    }

    .ai-chip.claude .indicator { background: var(--claude-color); box-shadow: 0 0 10px var(--claude-color); }
    .ai-chip.gpt .indicator { background: var(--gpt-color); box-shadow: 0 0 10px var(--gpt-color); }
    .ai-chip.gemini .indicator { background: var(--gemini-color); box-shadow: 0 0 10px var(--gemini-color); }
    .ai-chip.grok .indicator { background: var(--grok-color); box-shadow: 0 0 10px var(--grok-color); }
    .ai-chip.deepseek .indicator { background: var(--deepseek-color); box-shadow: 0 0 10px var(--deepseek-color); }
    .ai-chip.perplexity .indicator { background: var(--perplexity-color); box-shadow: 0 0 10px var(--perplexity-color); }
    .ai-chip.qwen .indicator { background: var(--qwen-color); box-shadow: 0 0 10px var(--qwen-color); }

    /* ============================================
       RIGHT PANEL - LOGIN FORM
       ============================================ */

    .form-panel {
        width: 510px;
        flex-shrink: 0;
        background:
            linear-gradient(165deg, rgba(99, 102, 241, 0.04) 0%, transparent 40%),
            linear-gradient(180deg, #161629 0%, #141428 100%);
        border: 1px solid rgba(99, 102, 241, 0.22);
        border-left: none;
        border-radius: 0 32px 32px 0;
        padding: 1.75rem 2.25rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        position: relative;
        box-shadow:
            var(--shadow-card),
            var(--shadow-glow),
            inset 1px 0 0 rgba(139, 92, 246, 0.08);
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .form-panel::-webkit-scrollbar { width: 0; height: 0; display: none; }

    .form-panel::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(ellipse at top right, var(--glass-highlight) 0%, transparent 60%);
        pointer-events: none;
        border-radius: 0 32px 32px 0;
    }

    .form-panel::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--brand-secondary), transparent);
        opacity: 0.5;
    }

    /* Form Header */
    .form-header {
        text-align: center;
        margin-bottom: 1.1rem;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
    }

    .form-icon-container {
        width: 62px;
        height: 62px;
        margin: 0 auto 0.7rem;
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        color: white;
        box-shadow:
            0 10px 30px -8px rgba(99, 102, 241, 0.55),
            0 4px 12px -2px rgba(139, 92, 246, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -2px 0 rgba(0, 0, 0, 0.15);
        position: relative;
        animation: iconFloat 5s ease-in-out infinite;
    }

    .form-icon-container::before {
        content: '';
        position: absolute;
        inset: -4px;
        background: var(--brand-gradient);
        border-radius: 22px;
        z-index: -1;
        opacity: 0.55;
        filter: blur(14px);
        animation: haloGlow 3s ease-in-out infinite;
    }

    .form-icon-container::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, transparent 50%);
        pointer-events: none;
    }

    @keyframes iconFloat {
        0%, 100% { transform: translateY(0) rotate(0deg); }
        50% { transform: translateY(-6px) rotate(2deg); }
    }

    @keyframes haloGlow {
        0%, 100% { opacity: 0.45; filter: blur(14px); }
        50% { opacity: 0.7; filter: blur(18px); }
    }

    .form-title {
        font-family: var(--font-display);
        font-size: 1.55rem;
        font-weight: 700;
        color: var(--text-white);
        margin-bottom: 0.3rem;
        line-height: 1.15;
        letter-spacing: -0.02em;
        background: linear-gradient(180deg, #ffffff 0%, #e0e7ff 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .form-subtitle {
        font-size: 0.82rem;
        color: var(--text-secondary);
        line-height: 1.45;
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .form-subtitle::before,
    .form-subtitle::after {
        content: '';
        display: inline-block;
        width: 24px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.5));
        vertical-align: middle;
        margin: 0 10px 3px 0;
    }
    .form-subtitle::after {
        background: linear-gradient(90deg, rgba(167, 139, 250, 0.5), transparent);
        margin: 0 0 3px 10px;
    }

    /* Form */
    .login-form {
        position: relative;
        z-index: 2;
    }

    .input-group {
        margin-bottom: 0.85rem;
        opacity: 0;
        transform: translateY(15px);
        animation: inputReveal 0.5s var(--ease-premium) forwards;
        display: flex;
        justify-content: center;
    }

    .input-group:nth-child(1) { animation-delay: 0.4s; }
    .input-group:nth-child(2) { animation-delay: 0.55s; }

    @keyframes inputReveal {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .input-label {
        display: block;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin-bottom: 0.6rem;
    }

    .input-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }

    .input-icon {
        position: absolute;
        left: 1.1rem;
        color: var(--text-muted);
        font-size: 1rem;
        transition: all 0.35s var(--ease-premium);
        pointer-events: none;
        z-index: 2;
    }

    .input-field {
        width: 100%;
        height: 52px;
        padding: 0 3rem 0 2.95rem;
        font-family: var(--font-body);
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-white);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(99, 102, 241, 0.02) 100%);
        border: 1.5px solid rgba(99, 102, 241, 0.18);
        border-radius: 14px;
        outline: none;
        transition: all 0.4s var(--ease-premium);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 1px 2px rgba(0, 0, 0, 0.2);
    }

    .input-field::placeholder {
        color: rgba(148, 163, 184, 0.65);
        font-weight: 400;
        letter-spacing: 0.01em;
    }

    .input-field:hover {
        border-color: rgba(139, 92, 246, 0.4);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    }

    .input-field:focus {
        border-color: rgba(139, 92, 246, 0.7);
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
        box-shadow:
            0 0 0 4px rgba(139, 92, 246, 0.15),
            0 0 24px -4px rgba(139, 92, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    .input-wrapper:focus-within .input-icon {
        color: var(--brand-tertiary);
        transform: scale(1.08);
        text-shadow: 0 0 12px rgba(167, 139, 250, 0.6);
    }

    .input-check {
        position: absolute;
        right: 1.15rem;
        color: #10b981;
        font-size: 1rem;
        transition: all 0.3s var(--ease-bounce);
        opacity: 0;
        transform: scale(0);
    }

    .input-field:valid:not(:placeholder-shown) ~ .input-check {
        opacity: 1;
        transform: scale(1);
    }

    /* Password Toggle */
    .pwd-toggle {
        position: absolute;
        right: 2.75rem;
        background: none;
        border: none;
        color: var(--text-muted);
        cursor: pointer;
        padding: 0.5rem;
        transition: color 0.3s ease;
        font-size: 1rem;
        z-index: 2;
    }

    .pwd-toggle:hover {
        color: var(--brand-primary);
    }

    /* Form Options */
    .form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.95rem;
        opacity: 0;
        animation: inputReveal 0.5s var(--ease-premium) 0.65s forwards;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .remember-me {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        cursor: pointer;
    }

    .remember-me input {
        display: none;
    }

    .custom-checkbox {
        width: 22px;
        height: 22px;
        border: 1.5px solid rgba(99, 102, 241, 0.35);
        border-radius: 7px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s var(--ease-premium);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(99, 102, 241, 0.05) 100%);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    }

    .custom-checkbox i {
        color: white;
        font-size: 0.65rem;
        opacity: 0;
        transform: scale(0);
        transition: all 0.2s var(--ease-bounce);
    }

    .remember-me input:checked + .custom-checkbox {
        background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
        border-color: transparent;
        box-shadow:
            0 4px 12px -2px rgba(99, 102, 241, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }

    .remember-me input:checked + .custom-checkbox i {
        opacity: 1;
        transform: scale(1);
    }

    .remember-me span {
        font-size: 0.84rem;
        color: var(--text-secondary);
        font-weight: 500;
        letter-spacing: 0.01em;
    }

    .forgot-link {
        font-size: 0.84rem;
        color: var(--brand-tertiary);
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.01em;
        transition: all 0.3s var(--ease-premium);
        position: relative;
    }

    .forgot-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -2px;
        width: 0;
        height: 1px;
        background: linear-gradient(90deg, var(--brand-primary), var(--brand-tertiary));
        transition: width 0.35s var(--ease-premium);
    }

    .forgot-link:hover {
        color: #ffffff;
    }

    .forgot-link:hover::after {
        width: 100%;
    }

    /* Submit Button */
    .btn-submit {
        width: 100%;
        max-width: 100%;
        height: 52px;
        margin: 0 auto;
        display: block;
        border: none;
        border-radius: 14px;
        font-family: var(--font-display);
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        transition: all 0.45s var(--ease-premium);
        background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
        background-size: 200% 100%;
        background-position: 0% 50%;
        color: white;
        box-shadow:
            0 10px 30px -8px rgba(99, 102, 241, 0.5),
            0 4px 12px -2px rgba(139, 92, 246, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.25),
            inset 0 -2px 0 rgba(0, 0, 0, 0.15);
        opacity: 0;
        animation: inputReveal 0.5s var(--ease-premium) 0.75s forwards;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .btn-submit::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
        transition: left 0.7s var(--ease-premium);
        pointer-events: none;
    }

    .btn-submit::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%);
        pointer-events: none;
    }

    .btn-submit:hover {
        transform: translateY(-3px);
        background-position: 100% 50%;
        box-shadow:
            0 18px 45px -10px rgba(99, 102, 241, 0.65),
            0 8px 20px -4px rgba(139, 92, 246, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.3),
            inset 0 -2px 0 rgba(0, 0, 0, 0.2);
    }

    .btn-submit:hover::before {
        left: 120%;
    }

    .btn-submit:active {
        transform: translateY(-1px);
        transition-duration: 0.15s;
    }

    .btn-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.75rem;
        position: relative;
        z-index: 2;
    }

    .btn-content i {
        font-size: 1.1rem;
        transition: transform 0.3s var(--ease-bounce);
    }

    .btn-submit:hover .btn-content i {
        transform: translateX(5px);
    }

    /* Loading State */
    .btn-submit.loading {
        pointer-events: none;
    }

    .btn-submit.loading .btn-content i {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

    /* Security Badge */
    .security-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.55rem;
        margin-top: 0.8rem;
        padding: 0.55rem 0.85rem;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(99, 102, 241, 0.04) 100%);
        border: 1px solid rgba(16, 185, 129, 0.18);
        border-radius: 11px;
        opacity: 0;
        animation: inputReveal 0.5s var(--ease-premium) 0.85s forwards;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    }

    .security-info i {
        color: #10b981;
        font-size: 0.92rem;
        filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.5));
    }

    .security-info span {
        font-size: 0.74rem;
        color: rgba(203, 213, 225, 0.85);
        font-weight: 500;
        letter-spacing: 0.02em;
        font-family: var(--font-display);
    }

    /* Features Tablet - Oculto en PC */
    .features-tablet {
        display: none;
    }

    /* ============================================
       DECORATIVE ELEMENTS
       ============================================ */

    .corner-glow {
        position: absolute;
        width: 200px;
        height: 200px;
        pointer-events: none;
        opacity: 0.5;
    }

    .corner-glow.top-right {
        top: -100px;
        right: -100px;
        background: radial-gradient(circle, var(--brand-primary) 0%, transparent 70%);
        filter: blur(60px);
    }

    .corner-glow.bottom-left {
        bottom: -100px;
        left: -100px;
        background: radial-gradient(circle, var(--brand-secondary) 0%, transparent 70%);
        filter: blur(60px);
    }

    /* ============================================
       RESPONSIVE DESIGN
       ============================================ */

    /* ============================================
       RESPONSIVE - TABLETS
       ============================================ */
    @media (max-width: 1024px) {
        .login-wrapper {
            flex-direction: column;
            max-width: 540px;
            height: 100%;
            max-height: 100%;
        }

        .brand-panel {
            border-radius: 24px 24px 0 0;
            border: 1px solid var(--glass-border);
            border-bottom: none;
            padding: 1rem 1.75rem;
            flex: 0 0 auto;
        }

        .brand-logo {
            width: 42px;
            height: 42px;
        }

        .brand-logo-row {
            margin-bottom: 0.35rem;
        }

        .brand-title {
            font-size: 1.45rem;
            margin-bottom: 0;
        }

        .brand-subtitle {
            display: none;
        }

        /* Ocultar features y AI en brand-panel */
        .features-section {
            display: none;
        }

        .ai-section {
            display: none;
        }

        .form-panel {
            width: 100%;
            border-radius: 0 0 24px 24px;
            border: 1px solid var(--glass-border);
            border-top: none;
            padding: 1.35rem 1.75rem;
            flex: 1 1 auto;
            min-height: 0;
        }

        /* Ocultar features-tablet (no cabe con formulario extendido) */
        .features-tablet {
            display: none;
        }

        .feature-card-tablet,
        .feature-icon-tablet,
        .feature-text-tablet h4,
        .feature-text-tablet p {
            display: none;
        }
    }

    /* ============================================
       RESPONSIVE - MÓVILES
       ============================================ */
    @media (max-width: 576px) {
        .login-page {
            padding: 0.5rem;
        }

        .login-wrapper {
            margin: 0 auto;
            max-width: 100%;
            height: 100%;
        }

        .brand-panel {
            display: none;
        }

        .form-panel {
            padding: 1.25rem 1.25rem;
            border-radius: 20px;
            border: 1px solid var(--glass-border);
            height: 100%;
            max-height: 100%;
        }

        .form-header {
            margin-bottom: 0.8rem;
        }

        .form-icon-container {
            width: 52px;
            height: 52px;
            font-size: 1.25rem;
            margin-bottom: 0.5rem;
            border-radius: 14px;
        }

        .form-title {
            font-size: 1.3rem;
        }

        .form-subtitle {
            font-size: 0.78rem;
        }

        .input-wrapper {
            max-width: 100%;
        }

        .input-field {
            height: 48px;
        }

        .form-options {
            max-width: 100%;
            flex-direction: row;
            gap: 0.5rem;
            align-items: center;
            justify-content: space-between;
        }

        .btn-submit {
            max-width: 100%;
            height: 48px;
        }

        .security-info {
            max-width: 100%;
        }

        /* Ocultar features-tablet en móviles */
        .features-tablet {
            display: none;
        }
    }

    /* ============================================
       RESPONSIVE - MÓVILES PEQUEÑOS
       ============================================ */
    @media (max-width: 380px) {
        .login-page {
            padding: 0.5rem;
        }

        .form-panel {
            padding: 1.5rem 1.25rem;
            border-radius: 20px;
        }

        .form-icon-container {
            width: 50px;
            height: 50px;
            font-size: 1.25rem;
        }

        .form-title {
            font-size: 1.25rem;
        }

        .input-field {
            height: 48px;
            font-size: 0.95rem;
        }

        .btn-submit {
            height: 48px;
            font-size: 0.95rem;
        }

        .security-info span {
            font-size: 0.6rem;
        }
    }

    /* ====================================================
       NUEVO: Tabs superiores Usuario / Email / Registrarse
       ==================================================== */
    .login-tabs-top {
        display: flex;
        gap: 4px;
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.04) 100%);
        border: 1px solid rgba(99, 102, 241, 0.18);
        padding: 5px;
        border-radius: 14px;
        margin: 0 auto 14px auto;
        max-width: 100%;
        position: relative;
        z-index: 2;
        flex-shrink: 0;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 2px 8px rgba(0, 0, 0, 0.2);
    }
    .login-tab-btn {
        flex: 1;
        padding: 9px 8px;
        background: transparent;
        border: none;
        border-radius: 10px;
        color: rgba(255, 255, 255, 0.62);
        font-size: 0.83rem;
        font-weight: 600;
        font-family: var(--font-display);
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: all 0.3s var(--ease-premium, ease);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        white-space: nowrap;
        position: relative;
    }
    .login-tab-btn i {
        font-size: 0.88rem;
        transition: transform 0.3s var(--ease-bounce);
    }
    .login-tab-btn:hover {
        color: rgba(255, 255, 255, 0.92);
        background: rgba(139, 92, 246, 0.08);
    }
    .login-tab-btn:hover i {
        transform: scale(1.1);
    }
    .login-tab-btn.active {
        background: linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
        color: #ffffff;
        box-shadow:
            0 6px 18px -4px rgba(99, 102, 241, 0.55),
            0 2px 6px rgba(139, 92, 246, 0.35),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    }

    .login-tab-content {
        display: none;
        animation: authAltSlide 0.3s ease-out;
    }
    .login-tab-content.active {
        display: block;
    }

    @media (max-width: 480px) {
        .login-tab-btn {
            padding: 9px 4px;
            font-size: 0.75rem;
            gap: 4px;
        }
        .login-tab-btn i { font-size: 0.78rem; }
    }

    /* ====================================================
       NUEVO: Estilos del sistema dual de autenticación
       (Google OAuth + login email + registro inline)
       ==================================================== */
    .auth-alt-divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 16px 0 14px 0;
        color: rgba(167, 139, 250, 0.7);
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.18em;
        font-family: var(--font-display);
    }
    .auth-alt-divider::before,
    .auth-alt-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(167, 139, 250, 0.35) 50%, transparent);
    }
    .auth-alt-divider span {
        padding: 0 18px;
        text-transform: uppercase;
    }

    .auth-alt-google {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        min-height: 50px;
        margin: 0;
        padding: 13px 18px;
        background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border: 1.5px solid rgba(255, 255, 255, 0.95);
        border-radius: 14px;
        color: #1f2937;
        font-family: var(--font-display);
        font-size: 0.93rem;
        font-weight: 600;
        letter-spacing: 0.01em;
        text-decoration: none;
        transition: all 0.35s var(--ease-premium);
        cursor: pointer;
        box-shadow:
            0 8px 22px -6px rgba(0, 0, 0, 0.25),
            0 2px 6px rgba(99, 102, 241, 0.15),
            inset 0 1px 0 rgba(255, 255, 255, 1);
        box-sizing: border-box;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
    }
    .auth-alt-google::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 60%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), transparent);
        transition: left 0.7s var(--ease-premium);
        pointer-events: none;
    }
    .auth-alt-google:hover::before {
        left: 120%;
    }
    .auth-alt-google span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .auth-alt-google:hover {
        transform: translateY(-2px);
        box-shadow:
            0 14px 32px -8px rgba(0, 0, 0, 0.35),
            0 4px 12px rgba(99, 102, 241, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 1);
        border-color: rgba(139, 92, 246, 0.3);
    }
    .auth-alt-google svg {
        flex-shrink: 0;
    }

    /* Espaciado entre botones OAuth consecutivos (Google + Microsoft) */
    .auth-alt-google + .auth-alt-google {
        margin-top: 10px;
    }

    /* ──────────────────────────────────────────────
       MODO COMPACTO: cuando el tab Registro está activo
       Compacta el formulario extenso para que el botón
       Google siempre sea visible sin necesidad de scroll.
       ────────────────────────────────────────────── */
    .form-panel.tab-registro-active {
        padding-top: 1.1rem;
        padding-bottom: 1.1rem;
    }
    .form-panel.tab-registro-active .form-header {
        margin-bottom: 0.4rem;
    }
    .form-panel.tab-registro-active .form-icon-container {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 0.25rem;
        border-radius: 11px;
    }
    .form-panel.tab-registro-active .form-icon-container::before {
        inset: -2px;
        filter: blur(8px);
    }
    .form-panel.tab-registro-active .form-title {
        font-size: 1.05rem;
        margin-bottom: 0.1rem;
    }
    /* Subtítulo oculto en registro para ahorrar espacio */
    .form-panel.tab-registro-active .form-subtitle {
        display: none;
    }
    .form-panel.tab-registro-active .login-tabs-top {
        margin-bottom: 8px;
    }
    .form-panel.tab-registro-active .login-tab-btn {
        padding: 7px 6px;
        font-size: 0.77rem;
    }
    /* Section labels OCULTOS en registro — liberamos ~60px */
    .form-panel.tab-registro-active .reg-section-label {
        display: none;
    }
    /* Hint del registro oculto en modo compacto */
    .form-panel.tab-registro-active .reg-form-hint {
        display: none;
    }
    /* Inputs del registro ultra compactos */
    .form-panel.tab-registro-active #registerForm .input-field,
    .form-panel.tab-registro-active #registerForm select.input-field {
        height: 40px;
        font-size: 0.85rem;
        border-radius: 11px;
    }
    .form-panel.tab-registro-active #registerForm .input-group {
        margin-bottom: 0.4rem;
    }
    .form-panel.tab-registro-active .reg-row,
    .form-panel.tab-registro-active .reg-row-title,
    .form-panel.tab-registro-active .reg-row-email {
        margin-bottom: 0.4rem;
        gap: 8px;
    }
    /* Phone group compacto en tab registro */
    .form-panel.tab-registro-active .input-group.phone-group {
        height: 40px;
        border-radius: 11px;
    }
    .form-panel.tab-registro-active .input-group.phone-group .phone-prefix-wrapper {
        flex: 0 0 105px;
        width: 105px;
        max-width: 105px;
        min-width: 105px;
    }
    .form-panel.tab-registro-active .phone-prefix-select {
        font-size: 0.84rem;
        padding: 0 24px 0 11px;
    }
    .form-panel.tab-registro-active #registerForm .btn-submit {
        height: 42px;
        margin-top: 0.15rem;
        font-size: 0.9rem;
        border-radius: 11px;
    }
    /* Security info oculto en registro (ya el botón es suficiente) */
    .form-panel.tab-registro-active #registerForm .security-info {
        display: none;
    }
    /* Divider y Google más compactos en modo registro */
    .form-panel.tab-registro-active .auth-alt-divider {
        margin: 8px 0 6px 0;
        font-size: 0.62rem;
        letter-spacing: 0.15em;
    }
    .form-panel.tab-registro-active .auth-alt-google {
        min-height: 42px;
        padding: 9px 14px;
        font-size: 0.87rem;
        border-radius: 11px;
    }
    .form-panel.tab-registro-active .auth-alt-google svg {
        width: 18px;
        height: 18px;
    }
    .form-panel.tab-registro-active .auth-alt-google + .auth-alt-google {
        margin-top: 6px;
    }

    .auth-alt-email-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 12px 16px;
        background: rgba(255, 255, 255, 0.08);
        border: 1.5px solid rgba(255, 255, 255, 0.25);
        border-radius: 12px;
        color: #ffffff;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.25s;
        font-family: inherit;
    }
    .auth-alt-email-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.4);
        transform: translateY(-1px);
    }
    .auth-alt-email-btn.active {
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.5);
    }
    .auth-alt-email-btn i {
        font-size: 0.95rem;
    }

    .auth-alt-form {
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: authAltSlide 0.3s ease-out;
    }
    @keyframes authAltSlide {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .auth-alt-feedback {
        margin-top: 10px;
        padding: 0;
        font-size: 0.85rem;
        border-radius: 8px;
        transition: all 0.2s;
    }
    .auth-alt-feedback:not(:empty) {
        padding: 10px 14px;
        margin-top: 12px;
    }
    .auth-alt-feedback.error {
        background: rgba(239, 68, 68, 0.15);
        color: #fecaca;
        border: 1px solid rgba(239, 68, 68, 0.4);
    }
    .auth-alt-feedback.success {
        background: rgba(34, 197, 94, 0.15);
        color: #bbf7d0;
        border: 1px solid rgba(34, 197, 94, 0.4);
    }
    .auth-alt-feedback.info {
        background: rgba(59, 130, 246, 0.15);
        color: #bfdbfe;
        border: 1px solid rgba(59, 130, 246, 0.4);
        cursor: pointer;
    }

    .auth-alt-register {
        margin-top: 18px;
        padding-top: 14px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
        font-size: 0.87rem;
        color: rgba(255, 255, 255, 0.75);
    }
    .auth-alt-register span {
        margin-right: 6px;
    }
    .auth-alt-register-link {
        background: none;
        border: none;
        color: #60a5fa;
        font-weight: 700;
        cursor: pointer;
        font-size: 0.87rem;
        padding: 4px 8px;
        border-radius: 6px;
        transition: all 0.2s;
        font-family: inherit;
    }
    .auth-alt-register-link:hover {
        background: rgba(96, 165, 250, 0.15);
        color: #93c5fd;
        text-decoration: underline;
    }

    /* ────────────────────────────────────────────
       FORMULARIO DE REGISTRO PROFESIONAL
       ──────────────────────────────────────────── */
    #registerForm {
        display: flex;
        flex-direction: column;
    }

    /* Encabezado de sección elegante con líneas decorativas */
    .reg-section-label {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.66rem;
        font-weight: 700;
        color: var(--brand-tertiary);
        text-transform: uppercase;
        letter-spacing: 0.16em;
        margin: 0.65rem 0 0.55rem 0;
        font-family: var(--font-display);
        position: relative;
    }
    .reg-section-label:first-child { margin-top: 0; }
    .reg-section-label::before {
        content: '';
        width: 4px;
        height: 14px;
        background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
        border-radius: 2px;
        display: inline-block;
        box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
    }
    .reg-section-label::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, rgba(167, 139, 250, 0.35) 0%, rgba(167, 139, 250, 0.08) 60%, transparent 100%);
        margin-left: 4px;
    }
    .reg-section-label + .reg-row,
    .reg-section-label + .input-group,
    .reg-section-label + .reg-row-title,
    .reg-section-label + .reg-row-email { margin-top: 0; }

    /* Grids del formulario */
    .reg-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-bottom: 0.7rem;
    }
    .reg-row-title {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 10px;
        margin-bottom: 0.7rem;
    }
    /* Email ancho + Celular más estrecho */
    .reg-row-email {
        display: grid;
        grid-template-columns: 1.6fr 1fr;
        gap: 10px;
        margin-bottom: 0.7rem;
    }
    .reg-row .input-group,
    .reg-row-title .input-group,
    .reg-row-email .input-group { margin-bottom: 0; }

    /* Inputs del registro — tamaño balanceado y profesional */
    #registerForm .input-field,
    #registerForm select.input-field {
        font-size: 0.9rem;
        height: 46px;
        padding: 0 0.9rem 0 2.75rem;
        border-radius: 12px;
    }
    #registerForm .input-icon {
        left: 0.95rem;
        font-size: 0.95rem;
    }
    #registerForm .input-group {
        margin-bottom: 0.7rem;
    }
    #registerForm .btn-submit {
        height: 48px;
        margin-top: 0.4rem;
        font-size: 0.95rem;
    }
    #registerForm .security-info {
        font-size: 0.7rem;
        margin-top: 0.55rem;
    }

    /* Select con flecha personalizada */
    #registerForm select.input-field {
        appearance: none;
        -webkit-appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 14px;
        padding-right: 36px;
        cursor: pointer;
    }
    #registerForm select.input-field option {
        background: #1e293b;
        color: #ffffff;
    }

    .reg-form-hint {
        font-size: 0.7rem;
        color: rgba(167, 139, 250, 0.8);
        margin: -0.2rem 0 0.65rem 0.25rem;
        font-style: italic;
        display: flex;
        align-items: center;
        gap: 7px;
        padding: 0.35rem 0.7rem;
        background: linear-gradient(135deg, rgba(139, 92, 246, 0.06) 0%, rgba(99, 102, 241, 0.03) 100%);
        border-left: 2px solid rgba(167, 139, 250, 0.4);
        border-radius: 0 6px 6px 0;
        letter-spacing: 0.01em;
    }
    .reg-form-hint::before {
        content: '\f05a';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        font-size: 0.72rem;
        color: var(--brand-tertiary);
        filter: drop-shadow(0 0 4px rgba(167, 139, 250, 0.4));
    }

    /* ──────────────────────────────────────────────
       Grupo de teléfono con prefijo internacional
       Caja UNIFICADA: dropdown pais + numero en un solo
       recuadro con borde compartido y separador interno
       ────────────────────────────────────────────── */
    .input-group.phone-group {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: stretch !important;
        justify-content: stretch !important;
        width: 100%;
        height: 52px;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0%, rgba(99, 102, 241, 0.02) 100%);
        border: 1.5px solid rgba(99, 102, 241, 0.18);
        border-radius: 14px;
        transition: all 0.4s var(--ease-premium);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.04),
            0 1px 2px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    .input-group.phone-group:hover {
        border-color: rgba(139, 92, 246, 0.4);
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(139, 92, 246, 0.04) 100%);
    }
    .input-group.phone-group:focus-within {
        border-color: rgba(139, 92, 246, 0.7);
        background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.06) 100%);
        box-shadow:
            0 0 0 4px rgba(139, 92, 246, 0.15),
            0 0 24px -4px rgba(139, 92, 246, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
    }

    /* Wrapper del select del pais: sin borde propio, con separador a la derecha */
    .input-group.phone-group .phone-prefix-wrapper {
        flex: 0 0 115px;
        width: 115px;
        max-width: 115px;
        min-width: 115px;
        position: relative;
        display: flex;
        align-items: center;
        border-right: 1px solid rgba(99, 102, 241, 0.22);
    }

    /* Wrapper del numero: sin borde, expansivo */
    .input-group.phone-group .phone-number-wrapper {
        flex: 1 1 auto;
        width: auto;
        max-width: none;
        min-width: 0;
        display: flex;
        align-items: center;
        position: relative;
    }

    /* Select del pais: transparente, sin borde, integrado */
    .phone-prefix-select {
        width: 100%;
        height: 100%;
        padding: 0 28px 0 14px;
        font-family: var(--font-body);
        font-size: 0.92rem;
        font-weight: 600;
        color: var(--text-white);
        background-color: transparent;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 8px center;
        background-size: 12px;
        border: none;
        border-radius: 0;
        outline: none;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
        letter-spacing: 0.02em;
        text-align: left;
        box-sizing: border-box;
        transition: color 0.25s var(--ease-premium);
    }
    .phone-prefix-select:hover {
        color: var(--brand-tertiary);
    }
    .phone-prefix-select:focus {
        color: var(--brand-tertiary);
    }
    .phone-prefix-select option {
        background: #1e1b4b;
        color: #ffffff;
        padding: 8px 12px;
        font-size: 0.92rem;
    }

    /* Input del numero DENTRO del grupo: sin borde ni fondo propios */
    .input-group.phone-group .phone-number-wrapper .input-field {
        height: 100%;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 1rem 0 2.75rem;
    }
    .input-group.phone-group .phone-number-wrapper .input-field:hover,
    .input-group.phone-group .phone-number-wrapper .input-field:focus {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }
    .input-group.phone-group .phone-number-wrapper .input-icon {
        left: 0.9rem;
    }
    /* En el tab registro compacto, ajustar altura del select */
    .form-panel.tab-registro-active .phone-prefix-select {
        height: 42px;
        font-size: 0.88rem;
    }

    /* Colapso mobile */
    @media (max-width: 560px) {
        .reg-row,
        .reg-row-title,
        .reg-row-email {
            grid-template-columns: 1fr;
            gap: 0;
            margin-bottom: 0;
        }
        .reg-row .input-group,
        .reg-row-title .input-group,
        .reg-row-email .input-group { margin-bottom: 0.7rem; }
    }

    @media (max-width: 480px) {
        .auth-alt-divider { margin: 8px 0 6px 0; font-size: 0.7rem; }
        .auth-alt-google { padding: 10px 14px; font-size: 0.85rem; min-height: 42px; gap: 8px; }
        .auth-alt-email-btn { padding: 10px 14px; font-size: 0.85rem; }
        .auth-alt-google svg { width: 18px; height: 18px; }
    }

    /* ============================================
       VIEWPORT HEIGHT — Adaptación sutil
       Solo compacta lo mínimo necesario por altura
       ============================================ */

    /* Pantallas <= 780px — ligera compactación */
    @media (max-height: 780px) {
        .form-panel { padding: 1.35rem 2rem; }
        .form-header { margin-bottom: 0.75rem; }
        .form-icon-container { width: 50px; height: 50px; font-size: 1.2rem; margin-bottom: 0.5rem; }
        .form-title { font-size: 1.3rem; }
        .form-subtitle { font-size: 0.78rem; }
        .login-tabs-top { margin-bottom: 11px; }
        .login-tab-btn { padding: 8px 7px; font-size: 0.8rem; }
        .input-field { height: 46px; }
        #registerForm .input-field { height: 44px; }
        #registerForm .input-group.phone-group { height: 44px; }
        .input-group { margin-bottom: 0.7rem; }
        #registerForm .input-group { margin-bottom: 0.55rem; }
        .btn-submit { height: 46px; }
        #registerForm .btn-submit { height: 46px; }
        .auth-alt-divider { margin: 11px 0 9px 0; }
        .auth-alt-google { min-height: 44px; padding: 10px 16px; }
        .security-info { margin-top: 0.55rem; padding: 0.4rem 0.65rem; }
        .reg-row, .reg-row-title, .reg-row-email { margin-bottom: 0.55rem; }
    }

    /* Pantallas <= 700px — compactación media */
    @media (max-height: 700px) {
        .form-panel { padding: 1.1rem 1.75rem; }
        .form-header { margin-bottom: 0.55rem; }
        .form-icon-container { width: 44px; height: 44px; font-size: 1.1rem; margin-bottom: 0.4rem; }
        .form-title { font-size: 1.15rem; }
        .form-subtitle { font-size: 0.75rem; }
        .login-tabs-top { margin-bottom: 9px; }
        .login-tab-btn { padding: 7px 6px; font-size: 0.77rem; }
        .input-field { height: 42px; font-size: 0.9rem; }
        #registerForm .input-field { height: 40px; font-size: 0.87rem; }
        #registerForm .input-group.phone-group { height: 40px; }
        .input-group { margin-bottom: 0.55rem; }
        #registerForm .input-group { margin-bottom: 0.45rem; }
        .btn-submit { height: 44px; font-size: 0.94rem; }
        #registerForm .btn-submit { height: 44px; margin-top: 0.2rem; }
        .auth-alt-divider { margin: 9px 0 7px 0; font-size: 0.7rem; }
        .auth-alt-google { min-height: 42px; padding: 9px 14px; font-size: 0.88rem; }
        .security-info { margin-top: 0.45rem; padding: 0.35rem 0.55rem; }
        .security-info span { font-size: 0.68rem; }
        .reg-section-label { font-size: 0.64rem; margin-bottom: 4px; }
        .reg-form-hint { font-size: 0.66rem; margin: -0.25rem 0 0.4rem 0.25rem; }
        .reg-row, .reg-row-title, .reg-row-email { margin-bottom: 0.45rem; }
        .form-options { margin-bottom: 0.75rem; }
    }

    /* Pantallas <= 620px — ultra compacto pero legible */
    @media (max-height: 620px) {
        .login-page { padding: 0.35rem; }
        .form-panel { padding: 0.9rem 1.5rem; }
        .form-header { margin-bottom: 0.4rem; }
        .form-icon-container { width: 38px; height: 38px; font-size: 1rem; margin-bottom: 0.3rem; }
        .form-title { font-size: 1.05rem; }
        .form-subtitle { font-size: 0.7rem; }
        .login-tabs-top { margin-bottom: 7px; padding: 3px; }
        .login-tab-btn { padding: 6px 5px; font-size: 0.72rem; }
        .input-field { height: 38px; font-size: 0.85rem; }
        #registerForm .input-field { height: 36px; font-size: 0.82rem; }
        #registerForm .input-group.phone-group { height: 36px; }
        .input-group { margin-bottom: 0.4rem; }
        #registerForm .input-group { margin-bottom: 0.35rem; }
        .btn-submit { height: 40px; font-size: 0.88rem; }
        #registerForm .btn-submit { height: 40px; }
        .auth-alt-divider { margin: 7px 0 5px 0; font-size: 0.66rem; }
        .auth-alt-google { min-height: 38px; padding: 7px 12px; font-size: 0.82rem; }
        .auth-alt-google svg { width: 18px; height: 18px; }
        .security-info { margin-top: 0.3rem; padding: 0.25rem 0.45rem; }
        .security-info span { font-size: 0.62rem; }
        .reg-section-label { display: none; }
        .reg-form-hint { display: none; }
        .reg-row, .reg-row-title, .reg-row-email { margin-bottom: 0.35rem; }
        .form-options { margin-bottom: 0.55rem; }
    }
