        /* =====================================================
           RESET
        ===================================================== */

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


        html,
        body {
            width: 100%;
            min-height: 100%;
        }


        body {

            min-height: 100vh;

            font-family:
                Arial,
                Helvetica,
                sans-serif;

            color: #ffffff;

            background:
                radial-gradient(
                    circle at 82% 18%,
                    rgba(249, 160, 27, 0.16),
                    transparent 28%
                ),
                radial-gradient(
                    circle at 15% 85%,
                    rgba(21, 91, 125, 0.35),
                    transparent 32%
                ),
                linear-gradient(
                    135deg,
                    #061720 0%,
                    #0a2636 45%,
                    #124e69 100%
                );

            display: flex;

            align-items: center;

            justify-content: center;

            padding: 35px;

            position: relative;

            overflow: hidden;

        }


        /* =====================================================
           FONDO ANIMADO
        ===================================================== */

        body::before {

            content: "";

            position: absolute;

            width: 750px;

            height: 750px;

            border-radius: 50%;

            border:
                1px solid
                rgba(
                    249,
                    160,
                    27,
                    0.10
                );

            top: -500px;

            right: -280px;

            animation:
                floatCircle 16s
                ease-in-out
                infinite;

            pointer-events: none;

        }


        body::after {

            content: "";

            position: absolute;

            width: 600px;

            height: 600px;

            border-radius: 50%;

            border:
                1px solid
                rgba(
                    255,
                    255,
                    255,
                    0.055
                );

            bottom: -400px;

            left: -300px;

            animation:
                floatCircleReverse 20s
                ease-in-out
                infinite;

            pointer-events: none;

        }


        @keyframes floatCircle {

            0%,
            100% {
                transform:
                    translate3d(
                        0,
                        0,
                        0
                    );
            }

            50% {
                transform:
                    translate3d(
                        -35px,
                        25px,
                        0
                    );
            }

        }


        @keyframes floatCircleReverse {

            0%,
            100% {
                transform:
                    translate3d(
                        0,
                        0,
                        0
                    );
            }

            50% {
                transform:
                    translate3d(
                        30px,
                        -20px,
                        0
                    );
            }

        }


        /* =====================================================
           DECORACIÓN DEL FONDO
        ===================================================== */

        .background-glow {

            position: absolute;

            width: 280px;

            height: 280px;

            border-radius: 50%;

            background:
                rgba(
                    249,
                    160,
                    27,
                    0.10
                );

            filter:
                blur(90px);

            top: 50%;

            left: 34%;

            transform:
                translate(
                    -50%,
                    -50%
                );

            animation:
                glowMove 9s
                ease-in-out
                infinite;

            pointer-events: none;

        }


        @keyframes glowMove {

            0%,
            100% {
                opacity: 0.45;

                transform:
                    translate(
                        -50%,
                        -50%
                    )
                    scale(1);
            }

            50% {
                opacity: 0.75;

                transform:
                    translate(
                        -45%,
                        -53%
                    )
                    scale(1.12);
            }

        }


        .background-line {

            position: absolute;

            width: 900px;

            height: 900px;

            border-radius: 50%;

            border:
                1px solid
                rgba(
                    255,
                    255,
                    255,
                    0.025
                );

            left: 25%;

            top: 50%;

            transform:
                translate(
                    -50%,
                    -50%
                );

            pointer-events: none;

        }


        /* =====================================================
           CONTENEDOR PRINCIPAL
        ===================================================== */

        .login-container {

            width: 100%;

            max-width: 1120px;

            min-height: 650px;

            display: grid;

            grid-template-columns:
                minmax(0, 1fr)
                450px;

            position: relative;

            z-index: 5;

            animation:
                pageEnter
                0.8s
                ease
                both;

        }


        @keyframes pageEnter {

            from {

                opacity: 0;

                transform:
                    translateY(18px)
                    scale(0.985);

            }

            to {

                opacity: 1;

                transform:
                    translateY(0)
                    scale(1);

            }

        }


        /* =====================================================
           PANEL IZQUIERDO
        ===================================================== */

        .brand-panel {

            display: flex;

            flex-direction: column;

            justify-content: center;

            padding:
                60px 70px 60px 35px;

            position: relative;

        }


        .brand-small {

            display: inline-flex;

            align-items: center;

            gap: 9px;

            font-size: 11px;

            font-weight: 700;

            letter-spacing:
                1.8px;

            text-transform:
                uppercase;

            color:
                rgba(
                    255,
                    255,
                    255,
                    0.62
                );

            margin-bottom: 28px;

            animation:
                contentEnter
                0.7s
                0.15s
                ease
                both;

        }


        .brand-small-dot {

            width: 8px;

            height: 8px;

            border-radius: 50%;

            background:
                #f9a01b;

            box-shadow:
                0 0 18px
                rgba(
                    249,
                    160,
                    27,
                    0.65
                );

        }


        .brand-title {

            max-width: 560px;

            font-size:
                clamp(
                    38px,
                    4vw,
                    62px
                );

            line-height:
                1.02;

            font-weight: 800;

            letter-spacing:
                -2px;

            margin-bottom: 24px;

            animation:
                contentEnter
                0.8s
                0.25s
                ease
                both;

        }


        .brand-title span {

            color:
                #f9a01b;

        }


        .brand-description {

            max-width: 510px;

            color:
                rgba(
                    255,
                    255,
                    255,
                    0.62
                );

            font-size: 16px;

            line-height: 1.7;

            margin-bottom: 38px;

            animation:
                contentEnter
                0.8s
                0.35s
                ease
                both;

        }


        .brand-features {

            display: grid;

            grid-template-columns:
                repeat(
                    2,
                    minmax(
                        0,
                        1fr
                    )
                );

            gap: 12px;

            max-width: 470px;

            animation:
                contentEnter
                0.8s
                0.45s
                ease
                both;

        }


        .brand-feature {

            display: flex;

            align-items: center;

            gap: 11px;

            padding:
                12px 14px;

            border:
                1px solid
                rgba(
                    255,
                    255,
                    255,
                    0.07
                );

            border-radius: 10px;

            background:
                rgba(
                    255,
                    255,
                    255,
                    0.025
                );

            color:
                rgba(
                    255,
                    255,
                    255,
                    0.70
                );

            font-size: 12px;

            transition:
                all
                0.25s
                ease;

        }


        .brand-feature:hover {

            background:
                rgba(
                    255,
                    255,
                    255,
                    0.055
                );

            border-color:
                rgba(
                    249,
                    160,
                    27,
                    0.25
                );

            transform:
                translateY(
                    -2px
                );

        }


        .feature-dot {

            width: 7px;

            height: 7px;

            min-width: 7px;

            border-radius: 50%;

            background:
                #f9a01b;

        }


        @keyframes contentEnter {

            from {

                opacity: 0;

                transform:
                    translateY(
                        16px
                    );

            }

            to {

                opacity: 1;

                transform:
                    translateY(
                        0
                    );

            }

        }


        /* =====================================================
           TARJETA LOGIN
        ===================================================== */

        .login-card {

            align-self: center;

            background:
                rgba(
                    255,
                    255,
                    255,
                    0.985
                );

            border-radius: 24px;

            padding:
                42px;

            box-shadow:
                0 35px 90px
                rgba(
                    0,
                    0,
                    0,
                    0.38
                ),
                0 0 0
                1px
                rgba(
                    255,
                    255,
                    255,
                    0.12
                );

            border-top:
                4px solid
                #f9a01b;

            color:
                #17212b;

            position: relative;

            overflow: hidden;

            animation:
                cardEnter
                0.8s
                0.2s
                ease
                both;

        }


        @keyframes cardEnter {

            from {

                opacity: 0;

                transform:
                    translateY(
                        22px
                    )
                    scale(
                        0.97
                    );

            }

            to {

                opacity: 1;

                transform:
                    translateY(
                        0
                    )
                    scale(
                        1
                    );

            }

        }


        .login-card::after {

            content: "";

            position: absolute;

            width: 180px;

            height: 180px;

            border-radius: 50%;

            background:
                rgba(
                    249,
                    160,
                    27,
                    0.045
                );

            top: -110px;

            right: -100px;

            pointer-events: none;

        }


        /* =====================================================
           LOGO
        ===================================================== */

        .logo {

            text-align: center;

            margin-bottom: 25px;

            position: relative;

            z-index: 2;

            animation:
                logoEnter
                0.8s
                0.35s
                ease
                both;

        }


        .logo img {

            display: block;

            width: 265px;

            max-width: 100%;

            height: auto;

            margin:
                0 auto;

        }


        @keyframes logoEnter {

            from {

                opacity: 0;

                transform:
                    translateY(
                        10px
                    );

            }

            to {

                opacity: 1;

                transform:
                    translateY(
                        0
                    );

            }

        }


        /* =====================================================
           TÍTULO LOGIN
        ===================================================== */

        .login-heading {

            text-align: center;

            margin-bottom: 28px;

            position: relative;

            z-index: 2;

        }


        .login-heading h1 {

            color:
                #155b7d;

            font-size: 24px;

            line-height: 1.2;

            font-weight: 800;

            margin-bottom: 7px;

        }


        .login-heading p {

            color:
                #89949d;

            font-size: 12px;

            line-height: 1.5;

        }


        /* =====================================================
           FORMULARIO
        ===================================================== */

        form {

            position: relative;

            z-index: 2;

        }


        .field {

            margin-bottom: 19px;

        }


        form label {

            display: block;

            color:
                #263238;

            font-size: 12px;

            font-weight: 700;

            margin-bottom: 8px;

        }


        .input-wrapper {

            position: relative;

        }


        form input {

            display: block;

            width: 100%;

            height: 52px;

            padding:
                0 15px;

            border:
                1px solid
                #d8dee2;

            border-radius: 10px;

            background:
                #ffffff;

            color:
                #222;

            font-size: 14px;

            outline: none;

            transition:
                border-color
                0.25s ease,
                box-shadow
                0.25s ease,
                transform
                0.25s ease;

        }


        form input::placeholder {

            color:
                #a2aab0;

        }


        form input:hover {

            border-color:
                #bfc8ce;

        }


        form input:focus {

            border-color:
                #f9a01b;

            box-shadow:
                0 0 0 4px
                rgba(
                    249,
                    160,
                    27,
                    0.11
                );

            transform:
                translateY(
                    -1px
                );

        }


        /* =====================================================
           PASSWORD
        ===================================================== */

        .password-input {

            padding-right:
                48px;

        }


        .toggle-password {

            position: absolute;

            right: 13px;

            top: 50%;

            transform:
                translateY(
                    -50%
                );

            width: 30px;

            height: 30px;

            border: none;

            background:
                transparent;

            color:
                #8c979f;

            cursor: pointer;

            display: flex;

            align-items: center;

            justify-content: center;

            border-radius: 7px;

            transition:
                all
                0.2s
                ease;

        }


        .toggle-password:hover {

            color:
                #155b7d;

            background:
                #f3f6f8;

        }


        .eye-icon {

            font-size: 16px;

            line-height: 1;

        }


        /* =====================================================
           BOTÓN
        ===================================================== */

        form button {

            width: 100%;

            height: 52px;

            margin-top: 3px;

            border: none;

            border-radius: 10px;

            background:
                linear-gradient(
                    135deg,
                    #f9a01b,
                    #ee8e08
                );

            color:
                #ffffff;

            font-size: 13px;

            font-weight: 800;

            letter-spacing:
                0.3px;

            cursor: pointer;

            position: relative;

            overflow: hidden;

            transition:
                transform
                0.25s ease,
                box-shadow
                0.25s ease,
                filter
                0.25s ease;

        }


        form button::before {

            content: "";

            position: absolute;

            top: 0;

            left: -120%;

            width: 80%;

            height: 100%;

            background:
                linear-gradient(
                    90deg,
                    transparent,
                    rgba(
                        255,
                        255,
                        255,
                        0.25
                    ),
                    transparent
                );

            transform:
                skewX(
                    -20deg
                );

            transition:
                left
                0.65s
                ease;

        }


        form button:hover {

            transform:
                translateY(
                    -2px
                );

            box-shadow:
                0 10px 25px
                rgba(
                    249,
                    160,
                    27,
                    0.28
                );

            filter:
                brightness(
                    1.03
                );

        }


        form button:hover::before {

            left: 130%;

        }


        form button:active {

            transform:
                translateY(
                    0
                );

        }


        form button:disabled {

            cursor:
                not-allowed;

            opacity:
                0.85;

            transform:
                none;

            box-shadow:
                none;

        }


        .button-content {

            display: flex;

            align-items: center;

            justify-content: center;

            gap: 9px;

            position: relative;

            z-index: 2;

        }


        .spinner {

            width: 15px;

            height: 15px;

            border:
                2px solid
                rgba(
                    255,
                    255,
                    255,
                    0.35
                );

            border-top-color:
                #ffffff;

            border-radius: 50%;

            animation:
                spin
                0.7s
                linear
                infinite;

        }


        @keyframes spin {

            to {
                transform:
                    rotate(
                        360deg
                    );
            }

        }


        /* =====================================================
           ERROR
        ===================================================== */

        .error {

            display: none;

            margin-top: 15px;

            padding:
                11px 12px;

            border-radius: 9px;

            background:
                #fff3f3;

            border:
                1px solid
                #ffd5d5;

            color:
                #c62828;

            text-align: center;

            font-size: 12px;

            line-height: 1.4;

        }


        .error.show {

            display: block;

            animation:
                errorIn
                0.3s
                ease
                both;

        }


        .login-card.login-error {

            animation:
                shake
                0.35s
                ease;

        }


        @keyframes errorIn {

            from {

                opacity: 0;

                transform:
                    translateY(
                        -5px
                    );

            }

            to {

                opacity: 1;

                transform:
                    translateY(
                        0
                    );

            }

        }


        @keyframes shake {

            0%,
            100% {
                transform:
                    translateX(
                        0
                    );
            }

            25% {
                transform:
                    translateX(
                        -6px
                    );
            }

            50% {
                transform:
                    translateX(
                        6px
                    );
            }

            75% {
                transform:
                    translateX(
                        -4px
                    );
            }

        }


        /* =====================================================
           SEGURIDAD
        ===================================================== */

        .security {

            display: flex;

            justify-content: center;

            align-items: center;

            gap: 7px;

            margin-top: 17px;

            color:
                #9aa3aa;

            font-size: 10px;

        }


        .security-dot {

            width: 6px;

            height: 6px;

            border-radius: 50%;

            background:
                #37a66a;

            box-shadow:
                0 0 8px
                rgba(
                    55,
                    166,
                    106,
                    0.45
                );

        }


        /* =====================================================
           FOOTER
        ===================================================== */

        .footer {

            text-align: center;

            margin-top: 22px;

            color:
                #a0a6aa;

            font-size: 10px;

            line-height: 1.5;

        }


        .footer strong {

            color:
                #155b7d;

        }


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

        @media (
            max-width: 900px
        ) {

            body {

                padding:
                    25px;

            }


            .login-container {

                max-width:
                    480px;

                min-height:
                    auto;

                display:
                    block;

            }


            .brand-panel {

                display:
                    none;

            }


            .login-card {

                width:
                    100%;

            }

        }


        @media (
            max-width: 500px
        ) {

            body {

                padding:
                    15px;

            }


            .login-card {

                padding:
                    34px 25px;

                border-radius:
                    20px;

            }


            .logo img {

                width:
                    225px;

            }


            .login-heading h1 {

                font-size:
                    22px;

            }


            form input,
            form button {

                height:
                    50px;

            }

        }


        @media (
            prefers-reduced-motion:
            reduce
        ) {

            *,
            *::before,
            *::after {

                animation-duration:
                    0.01ms !important;

                animation-iteration-count:
                    1 !important;

                transition-duration:
                    0.01ms !important;

            }

        }

/* =====================================================
   ONE GROUP — NUEVA IDENTIDAD DE LOGIN
   Estilos aditivos: preservan la estructura y la lógica existentes.
===================================================== */
:root {
    --og-blue: #0f4f70;
    --og-orange: #f39724;
    --og-ink: #16364a;
}
body {
    font-family: 'Poppins', 'Segoe UI', Arial, Helvetica, sans-serif;
    color: #fff;
    background:
        radial-gradient(ellipse at 12% 18%, rgba(15,79,112,.44), transparent 34%),
        radial-gradient(ellipse at 83% 78%, rgba(243,151,36,.13), transparent 26%),
        linear-gradient(125deg, #061923 0%, #0a2636 48%, #0f4f70 100%);
    padding: clamp(16px, 3vw, 42px);
}
body::before {
    width: 760px;
    height: 760px;
    border-color: rgba(243,151,36,.14);
}
body::after {
    border-color: rgba(255,255,255,.07);
}
.background-glow {
    background: rgba(15,79,112,.28);
    filter: blur(110px);
}
.login-container {
    max-width: 1240px;
    min-height: min(760px, calc(100vh - 64px));
    grid-template-columns: minmax(0, 1fr) minmax(390px, 450px);
    gap: clamp(24px, 4vw, 58px);
}
.brand-panel {
    padding: 52px 10px 52px 24px;
}
.brand-small {
    letter-spacing: 2px;
    color: rgba(255,255,255,.72);
    margin-bottom: 24px;
}
.brand-small-dot, .feature-dot {
    background: var(--og-orange);
}
.brand-title {
    font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
    font-size: clamp(36px, 3.6vw, 58px);
    letter-spacing: -1.6px;
    line-height: 1.04;
    max-width: 650px;
    margin-bottom: 22px;
}
.brand-title span { color: var(--og-orange); }
.brand-description {
    color: rgba(238,246,250,.78);
    font-size: 15px;
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 30px;
}
.brand-features { gap: 10px; max-width: 520px; }
.brand-feature {
    min-height: 62px;
    padding: 13px 15px;
    border-color: rgba(202,225,237,.16);
    border-radius: 12px;
    background: rgba(4,22,33,.24);
    backdrop-filter: blur(5px);
    color: rgba(255,255,255,.86);
}
.brand-feature:hover {
    background: rgba(15,79,112,.34);
    border-color: rgba(243,151,36,.42);
}
.login-card {
    width: 100%;
    padding: 42px;
    border-radius: 22px;
    border-top: 3px solid var(--og-orange);
    box-shadow: 0 28px 80px rgba(0,0,0,.34), 0 1px 0 rgba(255,255,255,.4) inset;
    background: rgba(255,255,255,.985);
}
.login-card::after { background: rgba(243,151,36,.065); }
.logo img { width: 250px; }
.login-heading h1 { color: var(--og-blue); font-size: 25px; }
.login-heading p { color: #718191; }
form label { color: #243746; }
form input {
    height: 52px;
    border-color: #d9e2e8;
    background: #f9fbfd;
    border-radius: 10px;
}
form input:focus {
    border-color: var(--og-orange);
    box-shadow: 0 0 0 4px rgba(243,151,36,.13);
}
.toggle-password:hover { color: var(--og-blue); }
form button {
    min-height: 52px;
    background: linear-gradient(115deg, #f7a12b, #f39724 55%, #ed890d);
    border-radius: 10px;
}
form button:hover { box-shadow: 0 10px 25px rgba(243,151,36,.24); }
.footer { color: #83919c; }
.footer strong { color: var(--og-blue); }
@media (min-width: 901px) and (max-height: 760px) {
    .login-container { min-height: calc(100vh - 44px); }
    .brand-panel { padding-top: 24px; padding-bottom: 24px; }
    .brand-small { margin-bottom: 16px; }
    .brand-title { font-size: clamp(34px, 3vw, 48px); margin-bottom: 16px; }
    .brand-description { margin-bottom: 22px; font-size: 14px; }
    .login-card { padding: 30px 38px; }
    .logo { margin-bottom: 18px; }
    .logo img { width: 225px; }
    .login-heading { margin-bottom: 22px; }
    .field { margin-bottom: 15px; }
}
@media (max-width: 900px) {
    body { background:
        radial-gradient(ellipse at 85% 0%, rgba(243,151,36,.11), transparent 30%),
        linear-gradient(135deg, #061923 0%, #0f4f70 100%); }
    .login-container { max-width: 470px; }
    .brand-panel { display: none; }
    .login-card { padding: 38px; }
}
@media (max-width: 500px) {
    body { padding: 14px; }
    .login-card { padding: 30px 23px; border-radius: 18px; }
    .logo img { width: 215px; }
    .login-heading h1 { font-size: 22px; }
}


/* ONEGROUP LOGIN — REFINAMIENTO VISUAL, preservando la autenticación */
body {
    background-color:#071c29;
    background-image:linear-gradient(90deg,rgba(3,18,28,.58),rgba(5,23,34,.40)),url('/login/onegroup-office-bg.png');
    background-size:cover;
    background-position:center;
    background-attachment:fixed;
}
.login-container {
    max-width:1380px;
    min-height:min(820px,calc(100vh - 52px));
    grid-template-columns:minmax(0,1.08fr) minmax(390px,440px);
    gap:clamp(34px,5vw,84px);
}
.brand-panel {padding:38px 0 38px 20px;max-width:760px}
.brand-small {font-size:11px;letter-spacing:2.2px;margin-bottom:22px}
.brand-title {font-size:clamp(42px,4vw,62px);line-height:1.04;letter-spacing:-1.5px;max-width:760px;margin-bottom:20px}
.brand-description {font-size:16px;line-height:1.7;max-width:620px;margin-bottom:30px;color:rgba(239,247,251,.82)}
.brand-features {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:650px}
.brand-feature {
    display:flex;align-items:center;gap:15px;min-height:78px;padding:14px 17px;
    border:1px solid rgba(195,224,239,.25);border-radius:13px;
    background:rgba(5,24,36,.55);backdrop-filter:blur(10px);
    color:#fff;transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.brand-feature:hover {transform:translateY(-2px);border-color:rgba(243,151,36,.65);background:rgba(15,79,112,.52)}
.feature-icon {display:flex;align-items:center;justify-content:center;flex:0 0 34px;width:34px;height:34px;color:#f39724}
.feature-icon svg {width:32px;height:32px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.feature-copy {display:flex;flex-direction:column;gap:4px;min-width:0}
.feature-copy strong {font-size:15px;font-weight:600;color:#fff}
.feature-copy small {font-size:12px;color:rgba(225,238,245,.72);line-height:1.35}
.login-card {max-width:440px;min-height:0;padding:40px 42px;border-radius:22px;border-top:3px solid #f39724;background:rgba(255,255,255,.985);box-shadow:0 28px 90px rgba(0,0,0,.38)}
.logo img {width:250px;max-width:100%;object-fit:contain}
.login-heading h1 {font-size:25px;color:#0f4f70}
.login-heading p {font-size:13px}
form input {height:52px;border-radius:10px;background:#f8fafc;border-color:#d9e3e9}
form input:focus {border-color:#f39724;box-shadow:0 0 0 4px rgba(243,151,36,.14)}
form button {min-height:52px;border-radius:10px;background:linear-gradient(110deg,#f7a12b,#f39724 60%,#ed890d)}
form button:hover {box-shadow:0 10px 24px rgba(243,151,36,.24)}
@media (min-width:901px) and (max-height:820px) {
 .login-container {min-height:calc(100vh - 44px);gap:clamp(28px,4vw,58px)}
 .brand-panel {padding-top:22px;padding-bottom:22px}
 .brand-small {margin-bottom:16px}
 .brand-title {font-size:clamp(38px,3.5vw,52px);margin-bottom:15px}
 .brand-description {font-size:14px;line-height:1.55;margin-bottom:20px}
 .brand-feature {min-height:68px;padding:11px 14px}
 .login-card {padding:30px 36px}
 .logo {margin-bottom:18px}
 .logo img {width:220px}
 .login-heading {margin-bottom:22px}
 .field {margin-bottom:15px}
}
@media (max-width:900px) {
 body {background-attachment:scroll}
 .login-container {max-width:480px;min-height:auto}
 .brand-panel {display:none}
 .login-card {max-width:480px;padding:38px}
}
@media (max-width:520px) {
 body {padding:14px;background-position:center}
 .login-card {padding:29px 23px;border-radius:18px}
 .logo img {width:210px}
 .login-heading h1 {font-size:22px}
}


/* =====================================================
   ONEGROUP LOGIN — ADAPTACIÓN RESPONSIVE COMPLEMENTARIA
   Mantiene intactos el HTML y la lógica de autenticación.
===================================================== */

/* Portátiles y ventanas medianas: evita comprimir demasiado las columnas. */
@media (min-width: 901px) and (max-width: 1200px) {
    body {
        padding: 24px;
    }

    .login-container {
        max-width: 1100px;
        grid-template-columns: minmax(0, 1fr) minmax(350px, 410px);
        gap: clamp(22px, 3vw, 38px);
    }

    .brand-panel {
        padding-left: 8px;
        padding-right: 0;
    }

    .brand-title {
        font-size: clamp(36px, 4vw, 48px);
        letter-spacing: -1px;
    }

    .brand-description {
        font-size: 14px;
    }

    .brand-feature {
        padding: 11px 12px;
        gap: 10px;
    }

    .feature-copy strong {
        font-size: 13px;
    }

    .feature-copy small {
        font-size: 11px;
    }

    .login-card {
        padding: 32px;
    }
}

/* Tablet en vertical y pantallas estrechas: formulario centrado y fluido. */
@media (max-width: 900px) {
    html,
    body {
        min-height: 100%;
    }

    body {
        min-height: 100vh;
        min-height: 100svh;
        padding: clamp(18px, 4vw, 32px);
        overflow-x: hidden;
        background-position: center;
    }

    .login-container {
        width: 100%;
        max-width: 480px;
        min-height: 0;
        display: block;
        margin: auto;
    }

    .login-card {
        width: 100%;
        max-width: 480px;
        margin: auto;
    }
}

/* Celulares. */
@media (max-width: 520px) {
    body {
        padding: 14px;
        padding-top: max(14px, env(safe-area-inset-top));
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        background-position: center;
        background-attachment: scroll;
    }

    .login-card {
        padding: clamp(23px, 6vw, 30px) clamp(19px, 5.5vw, 25px);
        border-radius: 18px;
    }

    .logo {
        margin-bottom: 20px;
    }

    .logo img {
        width: min(210px, 100%);
    }

    .login-heading {
        margin-bottom: 23px;
    }

    .login-heading h1 {
        font-size: clamp(20px, 5.5vw, 22px);
    }

    .login-heading p {
        font-size: 12px;
    }

    .field {
        margin-bottom: 16px;
    }

    form label {
        font-size: 12px;
    }

    form input,
    form button {
        min-height: 48px;
        height: 50px;
        font-size: 14px;
    }

    .security {
        flex-wrap: wrap;
        text-align: center;
        line-height: 1.5;
    }

    .footer {
        font-size: 10px;
        padding-inline: 2px;
    }
}

/* Celulares en horizontal o equipos con poca altura: permite desplazarse verticalmente. */
@media (max-width: 900px) and (max-height: 560px) {
    body {
        align-items: flex-start;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .login-container {
        margin-block: 0;
    }

    .login-card {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .logo {
        margin-bottom: 12px;
    }

    .logo img {
        width: 170px;
    }

    .login-heading {
        margin-bottom: 16px;
    }

    .field {
        margin-bottom: 12px;
    }

    .security {
        margin-top: 12px;
    }

    .footer {
        margin-top: 14px;
    }
}

/* Televisores y monitores grandes: escala el conjunto sin estirarlo indefinidamente. */
@media (min-width: 1800px) and (min-height: 900px) {
    .login-container {
        max-width: min(1680px, 88vw);
        grid-template-columns: minmax(0, 1fr) minmax(440px, 500px);
        gap: clamp(56px, 5vw, 100px);
    }

    .brand-title {
        font-size: clamp(58px, 3.4vw, 76px);
        max-width: 900px;
    }

    .brand-description {
        font-size: clamp(16px, 1vw, 19px);
        max-width: 720px;
    }

    .brand-features {
        max-width: 700px;
        gap: 14px;
    }

    .brand-feature {
        min-height: 82px;
        padding: 16px 18px;
    }

    .feature-copy strong {
        font-size: 16px;
    }

    .feature-copy small {
        font-size: 13px;
    }

    .login-card {
        max-width: 500px;
        padding: 44px;
    }
}

/* Accesibilidad: conserva el movimiento reducido solicitado por el dispositivo. */
@media (prefers-reduced-motion: reduce) {
    .login-container,
    .brand-panel *,
    .login-card,
    .login-card *,
    body::before,
    body::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Evita que los adornos del fondo generen desplazamiento horizontal en celular, tablet y PC. */
html{overflow-x:hidden}
html,body{max-width:100%}
