/* =========================================================
     AVYNEXO - AUTENTICACIÓN
========================================================= */
    :root {
    --auth-primario: #18181b;
    --auth-primario-claro: #27272a;

     --auth-secundario: #16a34a;
     --auth-secundario-claro: #4ade80;

    --auth-fondo: #f5f5f5;
    --auth-superficie: #ffffff;

    --auth-texto: #27272a;
    --auth-texto-suave: #71717a;

    --auth-borde: #e4e4e7;

    --auth-exito: #16a36a;
    --auth-error: #dc2626;

    --auth-radio: 24px;

    --auth-sombra:
        0 30px 80px rgba(
            11,
            31,
            58,
            0.14
        );

    --auth-transicion:
        0.25s ease;
}

/* =========================================================
   BASE
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    min-height: 100vh;
    font-family: "Montserrat", sans-serif;
    color: var(--auth-texto);
    background:
        linear-gradient(
            135deg,
            #f4f4f5 0%,
            #fafafa 45%,
            #f5f5f5 100%
        );
}

button,
input {
    font: inherit;
}

button {
    border: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   PÁGINA
========================================================= */

.auth-pagina {
    min-height: 100vh;
    position: relative;
    display: grid;
    place-items: center;
    padding: 40px;
    overflow: hidden;
}

/* =========================================================
   DECORACIONES
========================================================= */

.auth-decoracion {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.auth-decoracion-1 {
    width: 420px;
    height: 420px;
    left: -180px;
    top: -170px;

    background:
        radial-gradient(
            circle,
            rgba(22, 163, 74, 0.18),
            rgba(22, 163, 74, 0)
        );

    animation:
        authFlotarUno
        8s ease-in-out
        infinite;
}

.auth-decoracion-2 {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -220px;

    background:
        radial-gradient(
            circle,
            rgba(24, 24, 27, 0.13),
            rgba(24, 24, 27, 0)
        );

    animation:
        authFlotarDos
        10s ease-in-out
        infinite;
}

/* =========================================================
   CONTENEDOR
========================================================= */

.auth-contenedor {
    width: min(1180px, 100%);
    min-height: 690px;

    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(420px, 0.95fr);

    border:
        1px solid
        rgba(255, 255, 255, 0.8);

    border-radius:
        var(--auth-radio);

    background:
        var(--auth-superficie);

    box-shadow:
        var(--auth-sombra);

    overflow: hidden;

    animation:
        authEntrada
        0.65s ease both;
}

/* =========================================================
   PANEL DE MARCA
========================================================= */

.auth-panel-marca {
    position: relative;
    padding: 38px 42px;

    display: flex;
    flex-direction: column;

    color: #ffffff;

    background:
    linear-gradient(
        145deg,
        #18181b 0%,
        #27272a 50%,
        #3f3f46 100%
    );

    overflow: hidden;
}

.auth-logo-fondo {
    position: absolute;

    width: min(82%, 560px);
    height: auto;
    max-height: 82%;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    object-fit: contain;

    border-radius: 36px;

    clip-path:
        inset(
            0
            round 36px
        );

    opacity: 0.07;

    filter:
        drop-shadow(
            0 18px 35px
            rgba(0, 0, 0, 0.12)
        );

    image-rendering: auto;

    pointer-events: none;
    user-select: none;

    z-index: 1;
}

.auth-panel-marca::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -220px;
    top: -180px;

    border-radius: 50%;

    background:
       rgba(
    22,
    163,
    74,
    0.14
);
}

.auth-panel-marca::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    left: -160px;
    bottom: -180px;

    border-radius: 50%;

    border:
        45px solid
        rgba(
            255,
            255,
            255,
            0.035
        );
}

/* =========================================================
   MARCA SUPERIOR
========================================================= */

.auth-marca-superior {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 11px;
}

.auth-logo-icono {
    width: 120px;
    height: auto;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;
    flex-shrink: 0;

    border-radius: 0;
    overflow: visible;
}

.auth-logo-icono img {
    width: 120px;
    height: auto;

    display: block;
    object-fit: contain;
}

.auth-logo-texto {
    font-size: 1.1rem;
    font-weight: 800;
}

.auth-logo-texto span {
    color:
        var(--auth-secundario);
}

.auth-etiqueta {
    padding: 7px 11px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius: 999px;

    color: #cbd7e7;

    font-size: 0.67rem;
    font-weight: 700;

    background:
        rgba(
            255,
            255,
            255,
            0.05
        );
}

/* =========================================================
   CONTENIDO DEL PANEL
========================================================= */

.auth-marca-contenido {
    position: relative;
    z-index: 2;

    margin: auto 0;
    max-width: 560px;
}

.auth-subtitulo {
    display: inline-block;

    margin-bottom: 16px;

    color:
        var(--auth-secundario-claro);

    font-size: 0.74rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-marca-contenido h1 {
    margin-bottom: 18px;

    font-size:
        clamp(
            2rem,
            4vw,
            3.3rem
        );

    line-height: 1.08;

    letter-spacing: -0.04em;
}

.auth-marca-contenido > p {
    max-width: 520px;

    color: #b8c7da;

    font-size: 0.94rem;
    line-height: 1.75;
}

/* =========================================================
   BENEFICIOS
========================================================= */

.auth-beneficios {
    margin-top: 34px;

    display: grid;
    gap: 14px;
}

.auth-beneficios article {
    display: flex;
    align-items: flex-start;
    gap: 13px;

    padding: 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.07);

    border-radius: 13px;

    background:
        rgba(
            255,
            255,
            255,
            0.035
        );

    transition:
        var(--auth-transicion);
}

.auth-beneficios article:hover {
    transform:
        translateX(5px);

    background:
        rgba(
            255,
            255,
            255,
            0.065
        );
}

.auth-beneficios article > div {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color:
        var(--auth-secundario);

    background:
    rgba(
        22,
        163,
        74,
        0.14
    );
}

.auth-beneficios strong,
.auth-beneficios span {
    display: block;
}

.auth-beneficios strong {
    margin-bottom: 3px;
    font-size: 0.8rem;
}

.auth-beneficios span {
    color: #9fb0c6;
    font-size: 0.69rem;
    line-height: 1.5;
}

/* =========================================================
   PIE DEL PANEL
========================================================= */

.auth-marca-pie {
    position: relative;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;

    color: #8296b0;
    font-size: 0.65rem;
}

.auth-marca-pie span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* =========================================================
   PANEL DEL FORMULARIO
========================================================= */

.auth-panel-formulario {
    padding: 38px 48px 28px;

    display: flex;
    flex-direction: column;

    background:
        rgba(
            255,
            255,
            255,
            0.96
        );
}

.auth-formulario-marca {
    width: 100%;

    display: flex;
    justify-content: flex-end;
    align-items: center;

    margin-bottom: 18px;
}

.auth-formulario-contenido {
    width: min(420px, 100%);
    margin: auto;
}

.auth-formulario-encabezado {
    margin-bottom: 28px;
}

.auth-icono-acceso {
    width: 53px;
    height: 53px;

    margin-bottom: 18px;

    display: grid;
    place-items: center;

    border-radius: 14px;

    color:
        var(--auth-secundario);

    background:
    rgba(
        22,
        163,
        74,
        0.10
    );

    font-size: 1.2rem;
}

.auth-formulario-encabezado > span {
    display: block;

    margin-bottom: 7px;

    color:
        var(--auth-secundario);

    font-size: 0.68rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.auth-formulario-encabezado h2 {
    margin-bottom: 9px;

    font-size:
        clamp(
            1.65rem,
            3vw,
            2.15rem
        );

    letter-spacing: -0.035em;
}

.auth-formulario-encabezado p {
    color:
        var(--auth-texto-suave);

    font-size: 0.82rem;
    line-height: 1.65;
}

/* =========================================================
   ERROR
========================================================= */

.auth-error {
    margin-bottom: 20px;

    padding: 13px 14px;

    display: flex;
    align-items: flex-start;
    gap: 11px;

    border:
        1px solid
        rgba(
            220,
            38,
            38,
            0.16
        );

    border-radius: 11px;

    color: #991b1b;

    background: #fff1f2;

    animation:
        authErrorEntrada
        0.3s ease;
}

.auth-error > i {
    margin-top: 2px;
}

.auth-error strong,
.auth-error span {
    display: block;
}

.auth-error strong {
    margin-bottom: 3px;
    font-size: 0.75rem;
}

.auth-error span {
    font-size: 0.7rem;
    line-height: 1.45;
}

/* =========================================================
   FORMULARIO
========================================================= */

.auth-formulario {
    display: grid;
    gap: 19px;
}

.auth-campo label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--auth-texto);

    font-size: 0.73rem;
    font-weight: 700;
}

.auth-label-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.auth-label-fila span {
    color:
        var(--auth-texto-suave);

    font-size: 0.62rem;
}

.auth-input-contenedor {
    position: relative;

    height: 52px;

    display: flex;
    align-items: center;

    border:
        1px solid
        var(--auth-borde);

    border-radius: 12px;

    background:
        #fbfcfe;

    transition:
        var(--auth-transicion);
}

.auth-input-contenedor:focus-within {
    border-color:
        var(--auth-secundario);

    background:
        #ffffff;

    box-shadow:
    0 0 0 4px
    rgba(
        22,
        163,
        74,
        0.10
    );

    transform:
        translateY(-1px);
}

.auth-input-contenedor > i {
    width: 46px;

    color:
        #9aa7b8;

    text-align: center;

    transition:
        var(--auth-transicion);
}

.auth-input-contenedor:focus-within > i {
    color:
        var(--auth-secundario);
}

.auth-input-contenedor input {
    width: 100%;
    height: 100%;

    padding:
        0 45px 0 0;

    border: none;
    outline: none;

    color:
        var(--auth-texto);

    background:
        transparent;

    font-size: 0.78rem;
}

.auth-input-contenedor input::placeholder {
    color: #adb7c4;
}

.auth-ver-password {
    width: 44px;
    height: 44px;

    position: absolute;
    right: 4px;

    display: grid;
    place-items: center;

    border-radius: 9px;

    color:
        #8b98a9;

    background:
        transparent;

    cursor: pointer;

    transition:
        var(--auth-transicion);
}

.auth-ver-password:hover {
    color:
        var(--auth-secundario);

    background:
    rgba(
        22,
        163,
        74,
        0.08
    );
}

/* =========================================================
   BOTÓN
========================================================= */

.auth-boton {
    min-height: 53px;

    margin-top: 3px;

    padding: 0 18px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;

    border-radius: 12px;

    color: #ffffff;

    background:
    linear-gradient(
        135deg,
        var(--auth-secundario),
        var(--auth-secundario-claro)
    );

    font-size: 0.79rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
    0 12px 25px
    rgba(
        22,
        163,
        74,
        0.22
    );

    transition:
        var(--auth-transicion);
}

.auth-boton:hover {
    transform:
        translateY(-2px);

    box-shadow:
    0 16px 32px
    rgba(
        22,
        163,
        74,
        0.30
    );
}

.auth-boton:active {
    transform:
        translateY(0);
}

.auth-boton i {
    transition:
        var(--auth-transicion);
}

.auth-boton:hover i {
    transform:
        translateX(4px);
}

/* =========================================================
   SEGURIDAD
========================================================= */

.auth-seguridad {
    margin-top: 22px;

    padding: 13px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    border-radius: 10px;

    color:
        var(--auth-texto-suave);

    background:
        #f7f9fc;
}

.auth-seguridad i {
    margin-top: 2px;

    color:
        var(--auth-exito);
}

.auth-seguridad p {
    font-size: 0.66rem;
    line-height: 1.5;
}

/* =========================================================
   PIE DEL FORMULARIO
========================================================= */

.auth-formulario-pie {
    margin-top: auto;
    padding-top: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;

    color:
        var(--auth-texto-suave);

    font-size: 0.61rem;
}

/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes authEntrada {
    from {
        opacity: 0;
        transform:
            translateY(16px)
            scale(0.985);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}

@keyframes authErrorEntrada {
    from {
        opacity: 0;
        transform:
            translateY(-6px);
    }

    to {
        opacity: 1;
        transform:
            translateY(0);
    }
}

@keyframes authFlotarUno {
    0%,
    100% {
        transform:
            translate(0, 0);
    }

    50% {
        transform:
            translate(20px, 15px);
    }
}

@keyframes authFlotarDos {
    0%,
    100% {
        transform:
            translate(0, 0);
    }

    50% {
        transform:
            translate(-18px, -14px);
    }
}

/* =========================================================
   ACCESIBILIDAD
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    *,
    *::before,
    *::after {
        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}

/* =========================================================
   LOGIN COMPACTO - ESCRITORIO
========================================================= */

@media (
    min-width:
        961px
) {

    .auth-pagina {

        padding:
            30px;

    }


    .auth-contenedor {

        width:
            min(
                1000px,
                100%
            );

        min-height:
            590px;

        grid-template-columns:
            minmax(
                0,
                1.04fr
            )
            minmax(
                360px,
                0.96fr
            );

    }


    .auth-panel-marca {

        padding:
            30px 34px;

    }


    .auth-marca-contenido {

        max-width:
            480px;

    }


    .auth-subtitulo {

        margin-bottom:
            12px;

        font-size:
            0.66rem;

    }


    .auth-marca-contenido h1 {

        margin-bottom:
            14px;

        font-size:
            clamp(
                1.9rem,
                3vw,
                2.65rem
            );

        line-height:
            1.07;

    }


    .auth-marca-contenido > p {

        max-width:
            460px;

        font-size:
            0.80rem;

        line-height:
            1.65;

    }


    .auth-beneficios {

        margin-top:
            24px;

        gap:
            10px;

    }


    .auth-beneficios article {

        padding:
            10px 11px;

        gap:
            11px;

    }


    .auth-beneficios article > div {

        flex:
            0 0 34px;

        width:
            34px;

        height:
            34px;

    }


    .auth-beneficios strong {

        font-size:
            0.72rem;

    }


    .auth-beneficios span {

        font-size:
            0.62rem;

    }


    .auth-panel-formulario {

        padding:
            28px 38px 24px;

    }


    .auth-logo-icono,
    .auth-logo-icono img {

        width:
            95px;

    }


    .auth-formulario-marca {

        margin-bottom:
            10px;

    }


    .auth-formulario-contenido {

        width:
            min(
                365px,
                100%
            );

    }


    .auth-formulario-encabezado {

        margin-bottom:
            20px;

    }


    .auth-icono-acceso {

        width:
            45px;

        height:
            45px;

        margin-bottom:
            13px;

        border-radius:
            12px;

        font-size:
            1rem;

    }


    .auth-formulario-encabezado h2 {

        font-size:
            clamp(
                1.45rem,
                2.4vw,
                1.85rem
            );

    }


    .auth-formulario-encabezado p {

        font-size:
            0.72rem;

        line-height:
            1.55;

    }


    .auth-formulario {

        gap:
            15px;

    }


    .auth-campo label {

        margin-bottom:
            6px;

        font-size:
            0.67rem;

    }


    .auth-input-contenedor {

        height:
            46px;

        border-radius:
            10px;

    }


    .auth-input-contenedor input {

        font-size:
            0.72rem;

    }


    .auth-ver-password {

        width:
            40px;

        height:
            40px;

    }


    .auth-boton {

        min-height:
            47px;

        border-radius:
            10px;

        font-size:
            0.72rem;

    }


    .auth-seguridad {

        margin-top:
            16px;

        padding:
            10px 11px;

    }


    .auth-seguridad p {

        font-size:
            0.60rem;

    }


    .auth-formulario-pie {

        padding-top:
            18px;

        font-size:
            0.57rem;

    }

}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 960px) {

    .auth-pagina {
        padding: 25px;
    }

    .auth-contenedor {
        max-width: 680px;

        grid-template-columns: 1fr;
    }

    .auth-panel-marca {
        min-height: auto;
        padding: 28px 30px;
    }

    .auth-marca-contenido {
        margin: 40px 0;
    }

    .auth-marca-contenido h1 {
        max-width: 570px;
    }

    .auth-beneficios {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .auth-beneficios article {
        display: block;
    }

    .auth-beneficios article > div {
        margin-bottom: 10px;
    }

    .auth-panel-formulario {
        min-height: 600px;
    }

}

@media (max-width: 650px) {

    .auth-pagina {
        padding: 0;

        display: block;

        background:
            var(--auth-superficie);
    }

    .auth-contenedor {
        min-height: 100vh;

        border: none;
        border-radius: 0;

        box-shadow: none;
    }

    .auth-panel-marca {
        padding: 25px 22px 28px;
    }

    .auth-marca-superior {
        align-items: flex-start;
    }

    .auth-etiqueta {
        display: none;
    }

    .auth-marca-contenido {
        margin:
            34px 0
            10px;
    }

    .auth-marca-contenido h1 {
        font-size: 1.8rem;
    }

    .auth-marca-contenido > p {
        font-size: 0.78rem;
    }

    .auth-beneficios {
        display: none;
    }

    .auth-marca-pie {
        display: none;
    }

    .auth-panel-formulario {
        min-height: auto;

        padding:
            38px 22px
            30px;
    }

    .auth-formulario-contenido {
        margin: 0 auto;
    }

}

@media (max-width: 420px) {

    .auth-panel-formulario {
        padding:
            32px 18px
            25px;
    }

    .auth-formulario-pie {
        align-items: flex-start;
        flex-direction: column;
    }

}
/* =========================================================
   OCULTAR CONTROL NATIVO DE CONTRASEÑA
========================================================= */

.auth-input-contenedor input[type="password"]::-ms-reveal,
.auth-input-contenedor input[type="password"]::-ms-clear {
    display: none;
}

.auth-input-contenedor input[type="password"]::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}
.auth-input-contenedor input[type="password"] {
    appearance: none;
    -webkit-appearance: none;
}

@media (max-width: 768px) {

    .auth-logo-fondo {
        width: 72%;
        max-width: 420px;

        opacity: 0.045;

        border-radius: 28px;

        clip-path:
            inset(
                0
                round 28px
            );
    }

}

/* =========================================================
   LOGIN - NORMALIZACIÓN TIPOGRÁFICA
   MISMA ESCALA DE FORMULARIOS DEL SISTEMA
========================================================= */

/* ---------------------------------------------------------
   ETIQUETAS
--------------------------------------------------------- */

.auth-panel-formulario
.auth-campo
label {

    font-size:
        0.78rem;

}


/* ---------------------------------------------------------
   TEXTO AUXILIAR JUNTO A ETIQUETAS
--------------------------------------------------------- */

.auth-panel-formulario
.auth-label-fila
span {

    font-size:
        0.65rem;

}


/* ---------------------------------------------------------
   INPUTS
--------------------------------------------------------- */

.auth-panel-formulario
.auth-input-contenedor
input {

    font-size:
        0.80rem;

}


/* ---------------------------------------------------------
   BOTÓN PRINCIPAL
--------------------------------------------------------- */

.auth-panel-formulario
.auth-boton {

    font-size:
        0.78rem;

}


/* ---------------------------------------------------------
   MENSAJE DE SEGURIDAD
--------------------------------------------------------- */

.auth-panel-formulario
.auth-seguridad
p {

    font-size:
        0.65rem;

    line-height:
        1.5;

}


/* ---------------------------------------------------------
   PIE DEL FORMULARIO
--------------------------------------------------------- */

.auth-panel-formulario
.auth-formulario-pie {

    font-size:
        0.62rem;

}

/* =========================================================
   LOGIN - ENTRADA ANIMADA POR CAPAS
========================================================= */


/* ---------------------------------------------------------
   PANEL VISUAL IZQUIERDO
--------------------------------------------------------- */

.auth-panel-marca {

    animation:
        authPanelMarcaEntrada
        0.58s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        0.06s
        both;

}


/* ---------------------------------------------------------
   PARTE SUPERIOR DEL PANEL
--------------------------------------------------------- */

.auth-marca-superior {

    animation:
        authElementoEntrada
        0.46s
        ease
        0.14s
        both;

}


/* ---------------------------------------------------------
   SUBTÍTULO
--------------------------------------------------------- */

.auth-subtitulo {

    animation:
        authElementoEntrada
        0.46s
        ease
        0.20s
        both;

}


/* ---------------------------------------------------------
   TÍTULO PRINCIPAL
--------------------------------------------------------- */

.auth-marca-contenido
h1 {

    animation:
        authElementoEntrada
        0.50s
        ease
        0.26s
        both;

}


/* ---------------------------------------------------------
   DESCRIPCIÓN DEL PANEL
--------------------------------------------------------- */

.auth-marca-contenido
> p {

    animation:
        authElementoEntrada
        0.50s
        ease
        0.32s
        both;

}


/* ---------------------------------------------------------
   BENEFICIOS
--------------------------------------------------------- */

.auth-beneficios {

    animation:
        authElementoEntrada
        0.52s
        ease
        0.38s
        both;

}


/* ---------------------------------------------------------
   PIE DEL PANEL IZQUIERDO
--------------------------------------------------------- */

.auth-marca-pie {

    animation:
        authElementoEntrada
        0.48s
        ease
        0.44s
        both;

}


/* =========================================================
   FORMULARIO
========================================================= */


/* ---------------------------------------------------------
   LOGO
--------------------------------------------------------- */

.auth-formulario-marca {

    animation:
        authElementoEntradaDerecha
        0.48s
        ease
        0.18s
        both;

}


/* ---------------------------------------------------------
   ENCABEZADO
--------------------------------------------------------- */

.auth-formulario-encabezado {

    animation:
        authElementoEntradaDerecha
        0.50s
        ease
        0.26s
        both;

}


/* ---------------------------------------------------------
   CAMPO CORREO
--------------------------------------------------------- */

.auth-formulario
.auth-campo:nth-child(1) {

    animation:
        authElementoEntradaDerecha
        0.50s
        ease
        0.34s
        both;

}


/* ---------------------------------------------------------
   CAMPO CONTRASEÑA
--------------------------------------------------------- */

.auth-formulario
.auth-campo:nth-child(2) {

    animation:
        authElementoEntradaDerecha
        0.50s
        ease
        0.42s
        both;

}


/* ---------------------------------------------------------
   BOTÓN INICIAR SESIÓN
--------------------------------------------------------- */

.auth-formulario
.auth-boton {

    animation:
        authElementoEntradaDerecha
        0.50s
        ease
        0.50s
        both;

}


/* ---------------------------------------------------------
   MENSAJE DE SEGURIDAD
--------------------------------------------------------- */

.auth-seguridad {

    animation:
        authElementoEntradaDerecha
        0.48s
        ease
        0.58s
        both;

}


/* ---------------------------------------------------------
   PIE DEL FORMULARIO
--------------------------------------------------------- */

.auth-formulario-pie {

    animation:
        authElementoEntradaDerecha
        0.46s
        ease
        0.64s
        both;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes authPanelMarcaEntrada {

    from {

        opacity:
            0;

        transform:
            translateX(-24px);

    }


    to {

        opacity:
            1;

        transform:
            translateX(0);

    }

}


@keyframes authElementoEntrada {

    from {

        opacity:
            0;

        transform:
            translateY(13px);

    }


    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes authElementoEntradaDerecha {

    from {

        opacity:
            0;

        transform:
            translateX(15px)
            translateY(5px);

    }


    to {

        opacity:
            1;

        transform:
            translateX(0)
            translateY(0);

    }

}


/* =========================================================
   ACCESIBILIDAD - MOVIMIENTO REDUCIDO
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    *,
    *::before,
    *::after {

        animation-delay:
            0ms !important;

    }

}

/* =========================================================
   LOGIN - MOVIMIENTO AMBIENTAL DEL PANEL DE MARCA
========================================================= */


/* ---------------------------------------------------------
   LOGO DE FONDO
   RESPIRACIÓN MUY SUAVE
--------------------------------------------------------- */

.auth-logo-fondo {

    animation:
        authLogoFondoRespirar
        12s
        ease-in-out
        infinite;

}


/* ---------------------------------------------------------
   BRILLO VERDE SUPERIOR
--------------------------------------------------------- */

.auth-panel-marca::before {

    animation:
        authBrilloPanel
        14s
        ease-in-out
        infinite;

}


/* ---------------------------------------------------------
   ANILLO DECORATIVO INFERIOR
--------------------------------------------------------- */

.auth-panel-marca::after {

    animation:
        authAnilloPanel
        16s
        ease-in-out
        infinite;

}


/* =========================================================
   ANIMACIONES AMBIENTALES
========================================================= */

@keyframes authLogoFondoRespirar {

    0%,
    100% {

        transform:
            translate(
                -50%,
                -50%
            )
            scale(1);

    }


    50% {

        transform:
            translate(
                -50%,
                -50%
            )
            scale(1.025);

    }

}


@keyframes authBrilloPanel {

    0%,
    100% {

        transform:
            translate(
                0,
                0
            );

    }


    50% {

        transform:
            translate(
                -18px,
                16px
            );

    }

}


@keyframes authAnilloPanel {

    0%,
    100% {

        transform:
            translate(
                0,
                0
            )
            rotate(0deg);

    }


    50% {

        transform:
            translate(
                16px,
                -12px
            )
            rotate(8deg);

    }

}

/* =========================================================
   LOGIN - TRANSICIÓN DE ACCESO CON VEHÍCULO
========================================================= */


/* ---------------------------------------------------------
   PANEL DERECHO
--------------------------------------------------------- */

.auth-panel-formulario {

    position:
        relative;

    overflow:
        hidden;

}


/* ---------------------------------------------------------
   CAPA DE TRANSICIÓN
--------------------------------------------------------- */

.auth-cargando {

    position:
        absolute;

    inset:
        0;

    z-index:
        50;

    display:
        grid;

    place-items:
        center;

    padding:
        38px;

        background:
        #ffffff;

    opacity:
        0;

    visibility:
        hidden;

    pointer-events:
        none;

    transform:
        translateY(8px);

    transition:
        opacity
        0.22s
        ease,
        visibility
        0.22s
        ease,
        transform
        0.22s
        ease;

}


/* ---------------------------------------------------------
   MOSTRAR TRANSICIÓN
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando {

    opacity:
        1;

    visibility:
        visible;

    transform:
        translateY(0);

}


/* ---------------------------------------------------------
   CONTENIDO
--------------------------------------------------------- */

.auth-cargando-contenido {

    width:
        min(
            360px,
            100%
        );

    text-align:
        center;

}


.auth-cargando-etiqueta {

    display:
        inline-block;

    margin-bottom:
        10px;

    color:
        var(--auth-secundario);

    font-size:
        0.62rem;

    font-weight:
        800;

    letter-spacing:
        0.16em;

    text-transform:
        uppercase;

}


.auth-cargando-contenido
> strong {

    display:
        block;

    color:
        var(--auth-texto);

    font-size:
        1.22rem;

    font-weight:
        800;

}


.auth-cargando-contenido
> p {

    margin-top:
        7px;

    color:
        var(--auth-texto-suave);

    font-size:
        0.68rem;

    line-height:
        1.5;

}


/* =========================================================
   CARRETERA
========================================================= */

.auth-cargando-ruta {

    width:
        100%;

    height:
        72px;

    margin-top:
        27px;

    position:
        relative;

    overflow:
        hidden;

}


.auth-cargando-linea {

    width:
        100%;

    height:
        2px;

    position:
        absolute;

    left:
        0;

    bottom:
        17px;

    background:
        repeating-linear-gradient(
            90deg,
            #cfd6df
            0
            13px,
            transparent
            13px
            23px
        );

}


/* =========================================================
   VEHÍCULO
========================================================= */

.auth-cargando-auto {

    width:
        48px;

    height:
        38px;

    position:
        absolute;

    left:
        -54px;

    bottom:
        18px;

    display:
        grid;

    place-items:
        center;

    color:
        var(--auth-secundario);

    font-size:
        2rem;

}


/* ---------------------------------------------------------
   VEHÍCULO EN MOVIMIENTO
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-auto {

    animation:
        authAutoCruzar
        0.74s
        cubic-bezier(
            0.25,
            0.75,
            0.35,
            1
        )
        0.05s
        both;

}


/* ---------------------------------------------------------
   BOTÓN DURANTE EL ENVÍO
--------------------------------------------------------- */

.auth-boton:disabled {

    cursor:
        default;

    pointer-events:
        none;

}


/* =========================================================
   ANIMACIÓN DEL VEHÍCULO
========================================================= */

@keyframes authAutoCruzar {

    0% {

        left:
            -54px;

        transform:
            translateY(0)
            rotate(-1deg);

    }


    45% {

        transform:
            translateY(-2px)
            rotate(0deg);

    }


    100% {

        left:
            calc(
                100% + 8px
            );

        transform:
            translateY(0)
            rotate(1deg);

    }

}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-auto {

        animation:
            none;

        left:
            calc(
                50% - 24px
            );

    }

}

@media (
    prefers-reduced-motion:
    reduce
) {

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-auto {

        animation:
            none;

        left:
            calc(
                50% - 24px
            );

    }

}

/* =========================================================
   LOGIN - EFECTO DE ACELERACIÓN DEL VEHÍCULO
========================================================= */


/* ---------------------------------------------------------
   SOMBRA Y PROFUNDIDAD DEL AUTO
--------------------------------------------------------- */

.auth-cargando-auto {

    filter:
        drop-shadow(
            0 5px 5px
            rgba(
                15,
                23,
                42,
                0.22
            )
        );

}


/* ---------------------------------------------------------
   LÍNEAS DE VELOCIDAD
--------------------------------------------------------- */

.auth-cargando-auto::before,
.auth-cargando-auto::after {

    content:
        "";

    position:
        absolute;

    right:
        calc(
            100% + 4px
        );

    height:
        2px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(
                22,
                163,
                74,
                0.48
            )
        );

    opacity:
        0;

}


.auth-cargando-auto::before {

    width:
        32px;

    top:
        13px;

}


.auth-cargando-auto::after {

    width:
        22px;

    top:
        23px;

}


/* ---------------------------------------------------------
   MOSTRAR LÍNEAS DURANTE LA ACELERACIÓN
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-auto::before {

    animation:
        authEstelaUno
        0.18s
        ease-in-out
        infinite
        alternate;

}


.auth-panel-formulario.auth-esta-cargando
.auth-cargando-auto::after {

    animation:
        authEstelaDos
        0.15s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   CARRETERA EN MOVIMIENTO
========================================================= */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-linea {

    animation:
        authRutaMovimiento
        0.30s
        linear
        infinite;

}


/* =========================================================
   AUTO - MOVIMIENTO MEJORADO
========================================================= */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-auto {

    animation:
        authAutoAcelerar
        0.74s
        cubic-bezier(
            0.30,
            0.05,
            0.35,
            1
        )
        0.05s
        both;

}


/* ---------------------------------------------------------
   PEQUEÑO MOVIMIENTO DE SUSPENSIÓN
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-auto
i {

    animation:
        authAutoSuspension
        0.14s
        ease-in-out
        infinite
        alternate;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes authAutoAcelerar {

    0% {

        left:
            -54px;

        transform:
            scale(0.96);

    }


    18% {

        left:
            3%;

        transform:
            scale(1);

    }


    55% {

        left:
            48%;

        transform:
            scale(1.03);

    }


    82% {

        left:
            82%;

        transform:
            scale(1.02);

    }


    100% {

        left:
            calc(
                100% + 12px
            );

        transform:
            scale(0.98);

    }

}


@keyframes authRutaMovimiento {

    from {

        background-position:
            0 0;

    }


    to {

        background-position:
            -69px 0;

    }

}


@keyframes authAutoSuspension {

    from {

        transform:
            translateY(0);

    }


    to {

        transform:
            translateY(-1.5px);

    }

}


@keyframes authEstelaUno {

    from {

        opacity:
            0.20;

        transform:
            scaleX(0.65);

    }


    to {

        opacity:
            0.72;

        transform:
            scaleX(1);

    }

}


@keyframes authEstelaDos {

    from {

        opacity:
            0.14;

        transform:
            scaleX(0.55);

    }


    to {

        opacity:
            0.55;

        transform:
            scaleX(1);

    }

}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-linea,

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-auto::before,

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-auto::after,

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-auto
    i {

        animation:
            none;

    }


    .auth-cargando-auto::before,
    .auth-cargando-auto::after {

        display:
            none;

    }

}

/* =========================================================
   LOGIN - REFINAMIENTO DE LA ESCENA DE ACCESO
========================================================= */


/* ---------------------------------------------------------
   ENTRADA DEL CONTENIDO
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-contenido {

    animation:
        authAccesoContenidoEntrada
        0.26s
        ease
        0.03s
        both;

}


/* ---------------------------------------------------------
   TÍTULO + PUNTOS
--------------------------------------------------------- */

.auth-cargando-titulo {

    display:
        flex !important;

    justify-content:
        center;

    align-items:
        center;

    gap:
        8px;

}


/* ---------------------------------------------------------
   CONTENEDOR DE PUNTOS
--------------------------------------------------------- */

.auth-cargando-puntos {

    display:
        inline-flex;

    align-items:
        center;

    gap:
        4px;

}


/* ---------------------------------------------------------
   CADA PUNTO
--------------------------------------------------------- */

.auth-cargando-puntos
> span {

    width:
        5px;

    height:
        5px;

    display:
        block;

    border-radius:
        50%;

    background:
        var(--auth-secundario);

    opacity:
        0.25;

}


/* ---------------------------------------------------------
   ANIMACIÓN ESCALONADA DE PUNTOS
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-puntos
> span:nth-child(1) {

    animation:
        authPuntoAcceso
        0.48s
        ease-in-out
        0s
        infinite;

}


.auth-panel-formulario.auth-esta-cargando
.auth-cargando-puntos
> span:nth-child(2) {

    animation:
        authPuntoAcceso
        0.48s
        ease-in-out
        0.10s
        infinite;

}


.auth-panel-formulario.auth-esta-cargando
.auth-cargando-puntos
> span:nth-child(3) {

    animation:
        authPuntoAcceso
        0.48s
        ease-in-out
        0.20s
        infinite;

}


/* =========================================================
   BARRA DE PROGRESO
========================================================= */

.auth-cargando-progreso {

    width:
        min(
            190px,
            64%
        );

    height:
        3px;

    margin:
        14px auto 0;

    overflow:
        hidden;

    border-radius:
        999px;

    background:
        #edf1f4;

}


/* ---------------------------------------------------------
   RELLENO
--------------------------------------------------------- */

.auth-cargando-progreso
> span {

    width:
        100%;

    height:
        100%;

    display:
        block;

    border-radius:
        inherit;

    background:
        linear-gradient(
            90deg,
            var(--auth-secundario),
            var(--auth-secundario-claro)
        );

    transform:
        scaleX(0);

    transform-origin:
        left center;

}


/* ---------------------------------------------------------
   PROGRESO SINCRONIZADO CON EL LOGIN
--------------------------------------------------------- */

.auth-panel-formulario.auth-esta-cargando
.auth-cargando-progreso
> span {

    animation:
        authProgresoAcceso
        0.78s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        )
        0.04s
        both;

}


/* ---------------------------------------------------------
   AJUSTE DE LA RUTA
--------------------------------------------------------- */

.auth-cargando-ruta {

    margin-top:
        20px;

}


/* =========================================================
   ANIMACIONES
========================================================= */

@keyframes authAccesoContenidoEntrada {

    from {

        opacity:
            0;

        transform:
            translateY(8px);

    }


    to {

        opacity:
            1;

        transform:
            translateY(0);

    }

}


@keyframes authPuntoAcceso {

    0%,
    100% {

        opacity:
            0.22;

        transform:
            translateY(0)
            scale(0.85);

    }


    50% {

        opacity:
            1;

        transform:
            translateY(-2px)
            scale(1);

    }

}


@keyframes authProgresoAcceso {

    0% {

        transform:
            scaleX(0);

    }


    35% {

        transform:
            scaleX(0.30);

    }


    72% {

        transform:
            scaleX(0.76);

    }


    100% {

        transform:
            scaleX(1);

    }

}


/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (
    prefers-reduced-motion:
    reduce
) {

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-contenido,

    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-puntos
    > span {

        animation:
            none;

    }


    .auth-panel-formulario.auth-esta-cargando
    .auth-cargando-progreso
    > span {

        animation:
            none;

        transform:
            scaleX(1);

    }

}


