
        :root {
            --leaf-green: #1E6B2E;
            --leaf-green-deep: #0F3D1C;
            --leaf-green-mid: #155229;
            --leaf-green-soft: #E8F3E9;
            --leaf-green-mist: #F4F9F4;
            --gold: #F2B705;
            --gold-deep: #C98E00;
            --gold-soft: #FFF4D6;
            --ink: #171512;
            --ink-soft: #5B5750;
            --ink-mute: #8A857C;
            --paper: #FFFFFF;
            --paper-soft: #F7F8F4;
            --shadow-sm: 0 4px 14px rgba(23, 21, 18, 0.06);
            --shadow: 0 14px 40px rgba(23, 21, 18, 0.09);
            --shadow-green: 0 18px 50px rgba(15, 61, 28, 0.25);
            --radius-sm: 14px;
            --radius-lg: 24px;

            --fed-1: #E4572E;
            --fed-2: #2A9D8F;
            --fed-3: #3D5A80;
            --fed-4: #8E4585;
            --fed-5: #D64550;
            --fed-6: #F2B705;

            --unity-ring: linear-gradient(90deg,
                    var(--fed-1) 0 16.66%, var(--fed-2) 16.66% 33.33%,
                    var(--fed-3) 33.33% 50%, var(--fed-4) 50% 66.66%,
                    var(--fed-5) 66.66% 83.33%, var(--fed-6) 83.33% 100%);
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html,
        body {
            height: 100%;
        }

        body {
            font-family: 'Work Sans', sans-serif;
            background-color: var(--paper-soft);
            color: var(--ink);
            line-height: 1.5;
            display: flex;
            min-height: 100vh;
            overflow-x: hidden;
        }

        /* ============================================================
           LADO IZQUIERDO - PANEL DE MARCA / BRANDING
           ============================================================ */
        .brand-panel {
            flex: 1.1;
            position: relative;
            background-color: var(--leaf-green-deep);
            color: var(--paper);
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding: 4rem;
            overflow: hidden;
        }

        /* Patrón andino sutil */
        .brand-panel::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.05;
            background-image:
                repeating-linear-gradient(45deg, transparent 0 25px, rgba(242, 183, 5, 0.5) 25px 27px),
                repeating-linear-gradient(-45deg, transparent 0 25px, rgba(242, 183, 5, 0.5) 25px 27px);
            pointer-events: none;
        }

        /* Resplandores de color */
        .brand-panel::after {
            content: '';
            position: absolute;
            inset: 0;
            background:
                radial-gradient(circle at 20% 20%, rgba(242, 183, 5, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 80%, rgba(42, 157, 143, 0.12) 0%, transparent 40%);
            pointer-events: none;
        }

        .brand-content {
            position: relative;
            z-index: 2;
            max-width: 480px;
            animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
        }

        .brand-emblem {
            width: 90px;
            height: 90px;
            border-radius: 50%;
            padding: 5px;
            background: conic-gradient(var(--fed-1) 0 60deg, var(--fed-2) 60deg 120deg, var(--fed-3) 120deg 180deg,
                    var(--fed-4) 180deg 240deg, var(--fed-5) 240deg 300deg, var(--fed-6) 300deg 360deg);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 2.5rem;
            animation: spinSlow 30s linear infinite;
        }

        .brand-emblem-inner {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background: var(--leaf-green-deep);
            display: flex;
            align-items: center;
            justify-content: center;
            border: 2px solid var(--paper);
        }

        .brand-emblem-inner i {
            font-size: 2.2rem;
            color: var(--gold);
        }

        .brand-panel h1 {
            font-family: 'Fraunces', serif;
            font-size: 2.5rem;
            font-weight: 900;
            line-height: 1.1;
            margin-bottom: 1rem;
            color: var(--paper);
        }

        .brand-panel h1 span {
            color: var(--gold);
            font-style: italic;
        }

        .brand-panel p {
            font-size: 1rem;
            color: rgba(255, 255, 255, 0.75);
            margin-bottom: 2.5rem;
            line-height: 1.6;
        }

        .federation-dots {
            display: flex;
            gap: 0.75rem;
            margin-bottom: 3rem;
        }

        .fed-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
        }

        .brand-footer {
            position: absolute;
            bottom: 2rem;
            left: 4rem;
            right: 4rem;
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-family: 'Space Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 1px;
            text-transform: uppercase;
            color: rgba(255, 255, 255, 0.4);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            padding-top: 1.5rem;
        }

        /* ============================================================
           LADO DERECHO - PANEL DE FORMULARIO
           ============================================================ */
        .form-panel {
            flex: 1;
            background: var(--paper);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            padding: 3rem;
            position: relative;
        }

        /* Barra superior decorativa en el lado derecho */
        .form-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 6px;
            background: var(--unity-ring);
        }

        .form-container {
            width: 100%;
            max-width: 400px;
            animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
        }

        .mobile-logo {
            display: none;
            text-align: center;
            margin-bottom: 2.5rem;
        }

        .mobile-logo .brand-emblem {
            margin: 0 auto 1rem;
            width: 70px;
            height: 70px;
        }

        .form-header {
            margin-bottom: 2.5rem;
        }

        .eyebrow {
            font-family: 'Space Mono', monospace;
            font-size: 0.7rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--gold-deep);
            font-weight: 700;
            display: block;
            margin-bottom: 0.75rem;
        }

        .form-header h2 {
            font-family: 'Fraunces', serif;
            font-size: 2rem;
            font-weight: 700;
            color: var(--leaf-green-deep);
            margin-bottom: 0.5rem;
        }

        .form-header p {
            color: var(--ink-soft);
            font-size: 0.95rem;
        }

        .form-group {
            margin-bottom: 1.5rem;
            position: relative;
        }

        .form-label {
            position: absolute;
            top: 1.0625rem;
            left: 1.25rem;
            color: var(--ink-mute);
            font-size: 0.95rem;
            font-weight: 500;
            pointer-events: none;
            transition: all 0.25s ease;
            background: var(--paper);
            padding: 0 0.375rem;
            z-index: 2;
        }

        .form-control {
            width: 100%;
            height: 3.5rem;
            padding: 1.0625rem 3rem 1.0625rem 1.25rem;
            font-family: 'Work Sans', sans-serif;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--ink);
            background: var(--paper-soft);
            border: 1.5px solid transparent;
            border-radius: var(--radius-sm);
            transition: all 0.25s ease;
        }

        .form-control:hover {
            background: #fff;
            border-color: var(--leaf-green-soft);
        }

        .form-control:focus {
            border-color: var(--leaf-green);
            background: var(--paper);
            box-shadow: 0 0 0 4px rgba(30, 107, 46, 0.1);
            outline: none;
        }

        .form-control:focus+.form-label,
        .form-control:not(:placeholder-shown)+.form-label {
            top: -0.625rem;
            font-size: 0.75rem;
            color: var(--leaf-green-deep);
            font-weight: 700;
        }

        .form-control::placeholder {
            color: transparent;
        }

        .input-icon {
            position: absolute;
            right: 1.25rem;
            top: 50%;
            transform: translateY(-50%);
            color: var(--ink-mute);
            font-size: 1rem;
            pointer-events: none;
            transition: all 0.25s ease;
            z-index: 2;
        }

        .form-control:focus~.input-icon {
            color: var(--leaf-green);
            transform: translateY(-50%) scale(1.1);
        }

        /* Opciones de formulario */
        .form-options {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 2rem;
        }

        .form-check {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .form-check-input {
            width: 1.1rem;
            height: 1.1rem;
            border: 1.5px solid var(--ink-mute);
            border-radius: 4px;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .form-check-input:checked {
            background-color: var(--leaf-green);
            border-color: var(--leaf-green);
        }

        .form-check-input:focus {
            box-shadow: 0 0 0 3px rgba(30, 107, 46, 0.15);
            border-color: var(--leaf-green);
        }

        .form-check-label {
            font-size: 0.85rem;
            color: var(--ink-soft);
            cursor: pointer;
            font-weight: 500;
        }

        .forgot-link {
            font-size: 0.85rem;
            color: var(--leaf-green-deep);
            text-decoration: none;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .forgot-link:hover {
            color: var(--gold-deep);
        }

        /* Botón principal */
        .btn-login {
            width: 100%;
            background: var(--leaf-green-deep);
            color: var(--paper);
            border: none;
            border-radius: var(--radius-sm);
            padding: 1.125rem 1.5rem;
            font-family: 'Work Sans', sans-serif;
            font-weight: 600;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            box-shadow: 0 4px 14px rgba(15, 61, 28, 0.2);
        }

        .btn-login::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(242, 183, 5, 0.3), transparent);
            transition: left 0.6s ease;
        }

        .btn-login:hover {
            background: var(--leaf-green);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(15, 61, 28, 0.3);
        }

        .btn-login:hover::before {
            left: 100%;
        }

        .btn-login:active {
            transform: translateY(0);
        }

        .btn-login i {
            font-size: 0.9rem;
        }

        .back-home {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-top: 2.5rem;
            font-size: 0.85rem;
            color: var(--ink-soft);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.2s ease;
        }

        .back-home:hover {
            color: var(--leaf-green-deep);
            gap: 0.75rem;
        }

        /* Mensajes de error */
        .invalid-feedback {
            font-size: 0.75rem;
            margin-top: 0.5rem;
            display: flex;
            align-items: center;
            gap: 0.375rem;
            color: #DC2626;
            font-weight: 500;
        }

        .form-control.is-invalid {
            border-color: #DC2626 !important;
            background: #FEF2F2;
        }

        .form-control.is-invalid:focus {
            box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
        }

        /* Animaciones */
        @keyframes spinSlow {
            to {
                transform: rotate(360deg);
            }
        }

        @keyframes slideInLeft {
            from {
                opacity: 0;
                transform: translateX(-40px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @keyframes slideInRight {
            from {
                opacity: 0;
                transform: translateX(40px);
            }

            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* ============================================================
           RESPONSIVE - MÓVIL
           ============================================================ */
        @media (max-width: 991px) {
            body {
                flex-direction: column;
            }

            .brand-panel {
                flex: none;
                min-height: 280px;
                padding: 2.5rem;
                display: flex;
                justify-content: center;
                align-items: center;
                text-align: center;
            }

            .brand-content {
                max-width: 100%;
            }

            .brand-panel h1 {
                font-size: 1.8rem;
            }

            .brand-panel p {
                font-size: 0.9rem;
                margin-bottom: 1.5rem;
            }

            .brand-emblem {
                margin: 0 auto 1.5rem;
                width: 70px;
                height: 70px;
            }

            .federation-dots {
                justify-content: center;
                margin-bottom: 0;
            }

            .brand-footer {
                display: none;
            }

            .form-panel {
                flex: 1;
                padding: 2.5rem 1.5rem;
            }
        }

        @media (max-width: 480px) {
            .brand-panel {
                min-height: 220px;
                padding: 2rem;
            }

            .form-panel {
                padding: 2rem 1.25rem;
            }

            .form-header h2 {
                font-size: 1.6rem;
            }
        }
    