    /* ===== LAYOUT DE PÁGINA ===== */
    body {
        margin: 0;
        min-height: 100vh;
        overflow-x: hidden;
        overflow-y: auto;
        background-color: var(--primary);
        position: relative;
    }

    /* ===== FONDO ANIMADO PREMIUM ===== */
    .login-background {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        z-index: 0;
        background: linear-gradient(135deg, var(--primary) 0%, #0a2d52 50%, #0d3866 100%);
    }

    /* ===== FIGURAS GEOMÉTRICAS RECTAS (Look Institucional) ===== */
    .geo-shape {
        position: absolute;
        z-index: 1;
        opacity: 0.15;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent);
        pointer-events: none;
    }

    .geo-1 {
        width: 160%;
        height: 350px;
        top: -15%;
        left: -30%;
        background: linear-gradient(90deg, rgba(74, 144, 226, 0.25), transparent);
        animation: rotate-geo 46s linear infinite;
        transform-origin: center;
    }

    .geo-2 {
        width: 150%;
        height: 450px;
        bottom: -20%;
        right: -25%;
        background: linear-gradient(270deg, rgba(0, 229, 255, 0.2), transparent);
        animation: rotate-geo-reverse 63s linear infinite;
        transform-origin: center;
    }

    .geo-3 {
        width: 450px;
        height: 450px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        top: 20%;
        left: -150px;
        transform: rotate(45deg);
        animation: geoPulse 12s infinite alternate ease-in-out;
    }

    @keyframes rotate-geo {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    @keyframes rotate-geo-reverse {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(-360deg);
        }
    }

    @keyframes geoSlide {
        from {
            transform: rotate(-15deg) translateX(-150px) skewX(8deg);
        }

        to {
            transform: rotate(-15deg) translateX(150px) skewX(-8deg);
        }
    }

    @keyframes geoPulse {
        0% {
            transform: rotate(45deg) scale(1);
            opacity: 0.05;
        }

        100% {
            transform: rotate(45deg) scale(1.15);
            opacity: 0.15;
        }
    }





    /* ===== RED DE LÍNEAS GEOMÉTRICAS (Técnica) ===== */
    .login-grid-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
        pointer-events: none;
        opacity: 0.08;
        /* Ajustado para compensar el grosor */
        background-image:
            linear-gradient(rgba(255, 255, 255, 0.25) 3px, transparent 3px),
            linear-gradient(90deg, rgba(255, 255, 255, 0.25) 3px, transparent 3px);
        background-size: 60px 60px;
        /* Tamaño original solicitado */
        animation: gridShift 40s linear infinite;
    }



    @keyframes gridShift {
        0% {
            background-position: 0 0;
        }

        100% {
            background-position: 60px 60px;
        }
    }

    /* ===== PARTÍCULAS FLOTANTES ===== */
    .particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        pointer-events: none;
        overflow: hidden;
    }

    .particle {
        position: absolute;
        width: 3px;
        height: 3px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        animation: rise linear infinite;
    }

    .particle:nth-child(1) {
        left: 10%;
        animation-duration: 12s;
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        left: 25%;
        animation-duration: 18s;
        animation-delay: -3s;
        width: 2px;
        height: 2px;
    }

    .particle:nth-child(3) {
        left: 40%;
        animation-duration: 15s;
        animation-delay: -6s;
    }

    .particle:nth-child(4) {
        left: 55%;
        animation-duration: 20s;
        animation-delay: -2s;
        width: 4px;
        height: 4px;
        opacity: 0.2;
    }

    .particle:nth-child(5) {
        left: 70%;
        animation-duration: 14s;
        animation-delay: -8s;
    }

    .particle:nth-child(6) {
        left: 85%;
        animation-duration: 16s;
        animation-delay: -4s;
        width: 2px;
        height: 2px;
    }

    .particle:nth-child(7) {
        left: 5%;
        animation-duration: 22s;
        animation-delay: -10s;
        width: 2px;
        height: 2px;
    }

    .particle:nth-child(8) {
        left: 95%;
        animation-duration: 13s;
        animation-delay: -1s;
    }

    @keyframes rise {
        0% {
            transform: translateY(100vh) scale(0);
            opacity: 0;
        }

        10% {
            opacity: 0.4;
        }

        90% {
            opacity: 0.15;
        }

        100% {
            transform: translateY(-100px) scale(1);
            opacity: 0;
        }
    }

    /* ===== CONTENEDOR DE CENTRALIZACIÓN ===== */
    .login-wrapper {
        position: relative;
        z-index: 10;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
        padding: 2.5rem 1.5rem;
        gap: 0;
    }

    /* ===== LOGO EXTERIOR (sobre fondo oscuro) ===== */
    .login-logo-outer {
        margin-top: 2rem;
        margin-bottom: 2.2rem;
        text-align: center;
        transform: translateY(20px);
        opacity: 0;
        animation: logoReveal 0.6s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

    .login-logo-outer img {
        height: 95px;
        max-width: 90%;
        object-fit: contain;
        filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
    }

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

    /* ===== TARJETA GLASSMÓRFICA PREMIUM ===== */
    .login-glass-card {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.5);
        border-radius: var(--radius-lg);
        box-shadow:
            0 24px 64px rgba(0, 0, 0, 0.3),
            0 0 0 1px rgba(255, 255, 255, 0.1) inset;
        width: 100%;
        max-width: 440px;
        padding: 2.5rem 2.5rem 2rem;
        transform: translateY(20px);
        opacity: 0;
        animation: cardReveal 0.8s 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }

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

    /* ===== SEPARADOR ANIMADO ===== */
    .login-divider {
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
        background-size: 200% 100%;
        border-radius: 2px;
        margin: 1.2rem auto 2rem;
        animation: scanDivider 3s cubic-bezier(0.65, 0, 0.35, 1) infinite;
    }

    @keyframes scanDivider {
        0% {
            transform: translateX(-40px) scaleX(0.7);
            background-position: 100% 0;
        }

        50% {
            transform: translateX(0px) scaleX(1.6);
            background-position: 0% 0;
        }

        100% {
            transform: translateX(40px) scaleX(0.7);
            background-position: -100% 0;
        }
    }

    /* ===== ADAPTACIÓN DE FORMULARIO ===== */
    .input-group-text {
        background-color: #F4F6F9;
        border: 1px solid #E2E5EB;
        border-right: none;
        color: var(--text-secondary);
        border-radius: 10px 0 0 10px;
    }

    .login-glass-card .form-control {
        background-color: #F4F6F9;
        border: 1px solid #E2E5EB;
        padding: 0.8rem 1rem;
        border-radius: 0 10px 10px 0;
        font-size: 0.92rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .login-glass-card .form-control:focus {
        background-color: #FFFFFF;
        border-color: var(--primary-light);
        box-shadow: 0 10px 15px -3px rgba(74, 144, 226, 0.1), 0 4px 6px -2px rgba(74, 144, 226, 0.05);
    }

    .login-glass-card .form-control:focus+.input-group-text,
    .login-glass-card .form-control:focus~.input-group-text {
        border-color: var(--primary-light);
    }

    .login-glass-card .form-label {
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--text-secondary);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        margin-bottom: 0.6rem;
    }

    .login-glass-card .btn-primary {
        padding: 0.9rem;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 10px;
        letter-spacing: 0.03em;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    }

    .login-glass-card .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(74, 144, 226, 0.4);
        background-color: #5A9FE6;
    }

    /* Animaciones escalonadas para elementos internos */
    .stagger-1 {
        animation: cardReveal 0.8s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

    .stagger-2 {
        animation: cardReveal 0.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }

    .stagger-3 {
        animation: cardReveal 0.8s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        opacity: 0;
    }


    /* ===== FOOTER DEL LOGIN ===== */
    .login-footer {
        text-align: center;
        margin-top: 1.5rem;
        transform: translateY(10px);
        opacity: 0;
        animation: footerReveal 0.6s 0.5s ease forwards;
    }

    .login-footer span {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.72rem;
        letter-spacing: 0.04em;
    }

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

    /* ===== RESPONSIVE ===== */
    @media (max-height: 700px) {
        .login-logo-outer img {
            height: 75px;
        }

        .login-logo-outer {
            margin-bottom: 1rem;
        }

        .login-glass-card {
            padding: 1.8rem 2rem 1.5rem;
        }
    }

    @media (max-width: 480px) {
        .login-glass-card {
            padding: 2rem 1.5rem 1.5rem;
        }

        .login-logo-outer img {
            height: 85px;
        }
    }