/* ============================================================
   GAMMA XG - GLOBAL TOAST SYSTEM V1
   Fuente visual: notificaciones premium del dashboard.
   ============================================================ */

:root{
    --gx-notify-ease:
        cubic-bezier(.16,1,.3,1);
}


/* Contenedor */

#gamma-toast-container{
    position:
        fixed;

    top:
        24px;

    right:
        24px;

    z-index:
        1000000;

    width:
        min(398px,calc(100vw - 32px));

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

    align-items:
        stretch;

    pointer-events:
        none;
}


/* Tarjeta */

.gx-floating-toast{
    position:
        relative;

    width:
        100%;

    min-width:
        0;

    box-sizing:
        border-box;

    display:
        flex;

    align-items:
        flex-start;

    gap:
        13px;

    padding:
        15px 16px 14px;

    border-radius:
        20px;

    overflow:
        hidden;

    opacity:
        0;

    transform:
        translate3d(9px,-7px,0)
        scale(.98);

    transform-origin:
        90% 0%;

    filter:
        blur(2px);

    background:
        radial-gradient(
            115% 145%
            at 8% -22%,
            rgba(255,255,255,.15),
            transparent 47%
        ),
        linear-gradient(
            145deg,
            rgba(13,32,61,.88),
            rgba(3,15,35,.84)
        );

    border:
        1px solid
        rgba(255,255,255,.135);

    -webkit-backdrop-filter:
        blur(28px)
        saturate(175%)
        contrast(106%);

    backdrop-filter:
        blur(28px)
        saturate(175%)
        contrast(106%);

    box-shadow:
        0 24px 58px
            rgba(0,0,0,.38),
        0 8px 22px
            rgba(0,0,0,.20),
        inset 0 1px 0
            rgba(255,255,255,.18),
        inset 0 -1px 0
            rgba(255,255,255,.035);

    transition:
        opacity .30s ease,
        transform .44s var(--gx-notify-ease),
        filter .30s ease,
        border-color .24s ease;

    pointer-events:
        none;

    will-change:
        transform,
        opacity;
}


.gx-floating-toast::before{
    content:
        "";

    position:
        absolute;

    left:
        18px;

    right:
        18px;

    top:
        0;

    height:
        1px;

    opacity:
        .72;

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

    pointer-events:
        none;
}


.gx-floating-toast::after{
    content:
        "";

    position:
        absolute;

    width:
        82px;

    height:
        82px;

    right:
        -33px;

    top:
        -46px;

    border-radius:
        999px;

    background:
        rgba(59,130,246,.075);

    filter:
        blur(16px);

    pointer-events:
        none;
}


.gx-floating-toast.is-success::after{
    background:
        rgba(16,185,129,.065);
}


.gx-floating-toast.is-warning::after{
    background:
        rgba(245,158,11,.065);
}


.gx-floating-toast.is-error{
    border-color:
        rgba(248,113,113,.20);
}


.gx-floating-toast.is-error::after{
    background:
        rgba(239,68,68,.07);
}


.gx-floating-toast.is-visible{
    opacity:
        1;

    transform:
        translate3d(0,0,0)
        scale(1);

    filter:
        blur(0);
}


.gx-floating-toast.is-leaving{
    opacity:
        0;

    transform:
        translate3d(7px,-4px,0)
        scale(.989);

    filter:
        blur(.7px);

    transition-duration:
        .27s;
}


/* Reflejo */

.gx-toast-sheen{
    position:
        absolute;

    z-index:
        0;

    top:
        -35%;

    bottom:
        -35%;

    left:
        -34%;

    width:
        22%;

    transform:
        skewX(-18deg);

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

    opacity:
        0;

    pointer-events:
        none;
}


.gx-floating-toast.is-visible
.gx-toast-sheen{
    animation:
        gx-toast-sheen
        .78s
        .12s
        var(--gx-notify-ease)
        1
        both;
}


@keyframes gx-toast-sheen{
    0%{
        left:-34%;
        opacity:0;
    }

    22%{
        opacity:.72;
    }

    100%{
        left:118%;
        opacity:0;
    }
}


/* Icono */

.gx-toast-icon{
    position:
        relative;

    z-index:
        1;

    width:
        38px;

    height:
        38px;

    flex:
        0 0 38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border-radius:
        13px;

    color:
        #93c5fd;

    background:
        linear-gradient(
            180deg,
            rgba(96,165,250,.16),
            rgba(59,130,246,.06)
        );

    border:
        1px solid
        rgba(147,197,253,.17);

    box-shadow:
        inset 0 1px 0
            rgba(255,255,255,.13),
        0 8px 20px
            rgba(0,0,0,.18);
}


.gx-toast-icon svg{
    width:
        18px;

    height:
        18px;

    display:
        block;
}


.gx-floating-toast.is-success
.gx-toast-icon{
    color:
        #a7f3d0;

    background:
        linear-gradient(
            180deg,
            rgba(52,211,153,.13),
            rgba(16,185,129,.045)
        );

    border-color:
        rgba(110,231,183,.14);
}


.gx-floating-toast.is-warning
.gx-toast-icon{
    color:
        #fde68a;

    background:
        linear-gradient(
            180deg,
            rgba(251,191,36,.13),
            rgba(245,158,11,.045)
        );

    border-color:
        rgba(253,230,138,.14);
}


.gx-floating-toast.is-error
.gx-toast-icon{
    color:
        #fca5a5;

    background:
        linear-gradient(
            180deg,
            rgba(248,113,113,.13),
            rgba(239,68,68,.045)
        );

    border-color:
        rgba(252,165,165,.14);
}


/* Texto */

.gx-toast-copy{
    position:
        relative;

    z-index:
        1;

    min-width:
        0;

    flex:
        1;

    padding-top:
        1px;
}


.gx-toast-title{
    display:
        block;

    margin:
        0 0 5px;

    overflow:
        hidden;

    color:
        #93c5fd;

    font-family:
        "Plus Jakarta Sans",
        system-ui,
        sans-serif;

    font-size:
        9.5px;

    line-height:
        1.2;

    font-weight:
        800;

    letter-spacing:
        .14em;

    text-transform:
        uppercase;

    white-space:
        nowrap;

    text-overflow:
        ellipsis;
}


.gx-floating-toast.is-success
.gx-toast-title{
    color:
        #a7f3d0;
}


.gx-floating-toast.is-warning
.gx-toast-title{
    color:
        #fde68a;
}


.gx-floating-toast.is-error
.gx-toast-title{
    color:
        #fca5a5;
}


.gx-toast-message{
    display:
        -webkit-box;

    margin:
        0;

    overflow:
        hidden;

    color:
        rgba(241,245,249,.92);

    font-family:
        "Plus Jakarta Sans",
        system-ui,
        sans-serif;

    font-size:
        12.5px;

    line-height:
        1.48;

    font-weight:
        600;

    letter-spacing:
        0;

    overflow-wrap:
        anywhere;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;

    line-clamp:
        2;

    text-overflow:
        ellipsis;
}


/* Barra temporal */

.gx-toast-progress{
    position:
        absolute;

    left:
        18px;

    right:
        18px;

    bottom:
        0;

    height:
        1px;

    overflow:
        hidden;

    pointer-events:
        none;

    opacity:
        .42;
}


.gx-toast-progress::after{
    content:
        "";

    display:
        block;

    width:
        100%;

    height:
        100%;

    transform-origin:
        left center;

    background:
        linear-gradient(
            90deg,
            rgba(96,165,250,.22),
            rgba(147,197,253,.78)
        );

    animation:
        gx-toast-timeout
        var(--gx-toast-duration,4000ms)
        linear
        forwards;
}


.gx-floating-toast.is-success
.gx-toast-progress::after{
    background:
        linear-gradient(
            90deg,
            rgba(16,185,129,.18),
            rgba(110,231,183,.70)
        );
}


.gx-floating-toast.is-warning
.gx-toast-progress::after{
    background:
        linear-gradient(
            90deg,
            rgba(245,158,11,.18),
            rgba(253,230,138,.70)
        );
}


.gx-floating-toast.is-error
.gx-toast-progress::after{
    background:
        linear-gradient(
            90deg,
            rgba(239,68,68,.18),
            rgba(252,165,165,.70)
        );
}


@keyframes gx-toast-timeout{
    to{
        transform:
            scaleX(0);
    }
}


/*
 * Compatibilidad:
 * solo se oculta el sistema anterior cuando JS global
 * ya confirmó que está activo.
 */

html.gx-global-toast-ready
body.gx-register
.gx-register-step1-form
.gx-register-doc-error.gx-show{
    display:
        none !important;
}


.gx-toast-legacy-hidden{
    display:
        none !important;
}


/* Mobile */

@media(max-width:640px){

    #gamma-toast-container{
        top:
            12px;

        right:
            12px;

        width:
            calc(100vw - 24px);
    }

    .gx-floating-toast{
        padding:
            14px 15px 13px;

        gap:
            12px;

        border-radius:
            19px;
    }

    .gx-toast-message{
        font-size:
            12px;
    }
}


/* Accesibilidad */

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

    .gx-floating-toast,
    .gx-floating-toast.is-visible,
    .gx-floating-toast.is-leaving{
        transition-duration:
            .01ms !important;

        transform:
            none !important;

        filter:
            none !important;
    }

    .gx-toast-sheen,
    .gx-toast-progress::after{
        animation:
            none !important;
    }
}


/* ============================================================
   GX_GLOBAL_VALIDATION_UX_V1

   GAMMA XG
   Estado invalido premium global.
   La validacion funcional permanece intacta.
   ============================================================ */


/*
 * Ocultamiento definitivo del mensaje legacy
 * de documento cuando GammaToast esta activo.
 */

html.gx-global-toast-ready
body.gx-register
.gx-register-step1-form
.gx-register-doc-error,
html.gx-global-toast-ready
body.gx-register
.gx-register-step1-form
.gx-register-doc-error.gx-show{
    display:
        none !important;
}


/*
 * Campo real invalido.
 */

.gx-validation-invalid-visual,
input.gx-validation-invalid-visual,
select.gx-validation-invalid-visual,
textarea.gx-validation-invalid-visual{
    border-color:
        rgba(248,113,113,.44) !important;

    box-shadow:
        0 0 0 1px
            rgba(248,113,113,.13),
        0 0 0 4px
            rgba(248,113,113,.052),
        inset 0 1px 0
            rgba(255,255,255,.025)
        !important;

    transition:
        border-color .22s ease,
        box-shadow .22s ease
        !important;
}


/*
 * Muchos formularios GAMMA dibujan el borde
 * en el wrapper y no en el input.
 */

.gx-validation-invalid-wrap{
    border-color:
        rgba(248,113,113,.44) !important;

    box-shadow:
        0 0 0 1px
            rgba(248,113,113,.13),
        0 0 0 4px
            rgba(248,113,113,.052)
        !important;

    transition:
        border-color .22s ease,
        box-shadow .22s ease
        !important;
}


/*
 * Crear cuenta:
 * la validacion actual agrega gx-doc-invalid
 * al input-group. El halo debe verse tambien
 * en el control real.
 */

body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid,
body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid
input{
    border-color:
        rgba(248,113,113,.46) !important;

    box-shadow:
        0 0 0 1px
            rgba(248,113,113,.14),
        0 0 0 4px
            rgba(248,113,113,.055)
        !important;
}


/*
 * Select personalizado de documento.
 */

body.gx-register
.gx-auth-doc-select-trigger.gx-doc-invalid,
body.gx-register
.gx-auth-doc-select-trigger.gx-validation-invalid-visual{
    border-color:
        rgba(248,113,113,.46) !important;

    box-shadow:
        0 0 0 1px
            rgba(248,113,113,.14),
        0 0 0 4px
            rgba(248,113,113,.055)
        !important;
}


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

    .gx-validation-invalid-visual,
    .gx-validation-invalid-wrap{

        transition:
            none !important;
    }
}


/* ============================================================
   GX_TOAST_PRECISION_HALO_V2
   GAMMA XG - precision + invalid state
   ============================================================ */


/*
 * El mensaje nunca se recorta visualmente.
 * Debe ser breve por redaccion, no por "...".
 */

.gx-toast-title{
    overflow:
        visible !important;

    white-space:
        normal !important;

    text-overflow:
        clip !important;
}


.gx-toast-message{
    display:
        block !important;

    overflow:
        visible !important;

    white-space:
        normal !important;

    text-overflow:
        clip !important;

    -webkit-line-clamp:
        unset !important;

    line-clamp:
        unset !important;

    max-height:
        none !important;
}


/*
 * Ocultar presentaciones legacy mientras
 * GammaToast absorbe sus mensajes.
 */

html.gx-global-toast-ready
#toastContainer > *,

html.gx-global-toast-ready
#toast-container > *{
    visibility:
        hidden !important;

    opacity:
        0 !important;

    pointer-events:
        none !important;
}


/*
 * Halo persistente para campo invalido.
 */

.gx-validation-invalid-visual,
.gx-validation-invalid-wrap,

body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid,

body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid input,

body.gx-register
.gx-auth-doc-select-trigger.gx-doc-invalid{

    border-color:
        rgba(251,113,133,.68)
        !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.25),
        0 0 0 5px
            rgba(251,113,133,.095),
        0 0 22px
            rgba(251,113,133,.09)
        !important;
}


/*
 * Destello corto para localizar rapidamente
 * el campo que necesita correccion.
 */

@keyframes gx-invalid-highlight{

    0%{
        box-shadow:
            0 0 0 1px
                rgba(251,113,133,.20),
            0 0 0 3px
                rgba(251,113,133,.05),
            0 0 8px
                rgba(251,113,133,.04);
    }

    46%{
        box-shadow:
            0 0 0 1px
                rgba(251,113,133,.42),
            0 0 0 7px
                rgba(251,113,133,.15),
            0 0 28px
                rgba(251,113,133,.14);
    }

    100%{
        box-shadow:
            0 0 0 1px
                rgba(251,113,133,.25),
            0 0 0 5px
                rgba(251,113,133,.095),
            0 0 22px
                rgba(251,113,133,.09);
    }
}


.gx-validation-invalid-pulse{

    animation:
        gx-invalid-highlight
        .58s
        cubic-bezier(.16,1,.3,1)
        1
        both !important;
}


body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid input,

body.gx-register
.gx-auth-doc-select-trigger.gx-doc-invalid{

    animation:
        gx-invalid-highlight
        .58s
        cubic-bezier(.16,1,.3,1)
        1
        both;
}


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

    .gx-validation-invalid-pulse,

    body.gx-register
    .gx-register-step1-form
    .input-group.gx-doc-invalid input,

    body.gx-register
    .gx-auth-doc-select-trigger.gx-doc-invalid{

        animation:
            none !important;
    }
}


/* ============================================================
   GX_WRAPPER_HALO_FIX_V1
   Refuerzo del halo sobre el contenedor visible
   ============================================================ */

/*
 * El wrapper visible debe marcarse claramente,
 * no solo el input interno.
 */

.gx-validation-invalid-wrap,
.input-group.gx-validation-invalid-wrap,
.form-group.gx-validation-invalid-wrap,
.field-group.gx-validation-invalid-wrap,
.input-wrapper.gx-validation-invalid-wrap,
.select-wrapper.gx-validation-invalid-wrap,
.auth-field.gx-validation-invalid-wrap,

body.gx-register .gx-register-step1-form .input-group.gx-doc-invalid,
body.gx-register .gx-register-step1-form .input-group.gx-doc-invalid input,
body.gx-register .gx-auth-doc-select-trigger.gx-doc-invalid{

    border-color: rgba(251,113,133,.82) !important;
    box-shadow:
        0 0 0 1px rgba(251,113,133,.34),
        0 0 0 6px rgba(251,113,133,.12),
        0 0 26px rgba(251,113,133,.14) !important;
}


/*
 * Asegurar que el glow no se corte.
 */

.input-group,
.form-group,
.field-group,
.input-wrapper,
.select-wrapper,
.auth-field{
    overflow: visible !important;
}


/*
 * Si el input está dentro del wrapper, mantener
 * una señal coherente también en el control real.
 */

.gx-validation-invalid-wrap input,
.gx-validation-invalid-wrap select,
.gx-validation-invalid-wrap textarea{
    border-color: rgba(251,113,133,.72) !important;
}


/*
 * Enfasis extra para auth/register,
 * porque ahí el acabado premium importa más.
 */

body.gx-register .gx-register-step1-form .input-group.gx-validation-invalid-wrap,
body.gx-register .gx-register-step1-form .input-group.gx-doc-invalid{
    box-shadow:
        0 0 0 1px rgba(251,113,133,.38),
        0 0 0 7px rgba(251,113,133,.14),
        0 0 30px rgba(251,113,133,.16) !important;
}



/* ============================================================
   GX_INVALID_PRECISION_VISUAL_V3

   REGLA:
   - Un solo elemento visual por error.
   - Auth Register / Recover / Reset:
     el wrapper estructural NO dibuja halo.
   - El input/select/trigger redondeado es el control visible.
   ============================================================ */


/* ------------------------------------------------------------
   1. AUTH:
   wrappers estructurales transparentes.

   No deben volver a dibujar un rectangulo exterior.
   ------------------------------------------------------------ */

.register-card
.input-group.gx-validation-invalid-wrap,

.recover-card
.input-group.gx-validation-invalid-wrap,

.reset-card
.input-group.gx-validation-invalid-wrap,

.register-card
.auth-field.gx-validation-invalid-wrap,

.recover-card
.auth-field.gx-validation-invalid-wrap,

.reset-card
.auth-field.gx-validation-invalid-wrap {

    border-color:
        transparent !important;

    outline:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;

    animation:
        none !important;
}


/* ------------------------------------------------------------
   2. El control REAL conserva siempre su radio redondeado.

   Importante:
   gamma-form-guard heredaba el border-radius del wrapper.
   En estas pantallas el wrapper tiene radius 0.
   ------------------------------------------------------------ */

.register-card
.input-group.gx-validation-invalid-wrap
>
input.gx-validation-invalid-visual,

.register-card
.input-group.gx-validation-invalid-wrap
>
select.gx-validation-invalid-visual,

.register-card
.input-group.gx-validation-invalid-wrap
>
textarea.gx-validation-invalid-visual,

.recover-card
.input-group.gx-validation-invalid-wrap
>
input.gx-validation-invalid-visual,

.recover-card
.input-group.gx-validation-invalid-wrap
>
select.gx-validation-invalid-visual,

.recover-card
.input-group.gx-validation-invalid-wrap
>
textarea.gx-validation-invalid-visual,

.reset-card
.input-group.gx-validation-invalid-wrap
>
input.gx-validation-invalid-visual,

.reset-card
.input-group.gx-validation-invalid-wrap
>
select.gx-validation-invalid-visual,

.reset-card
.input-group.gx-validation-invalid-wrap
>
textarea.gx-validation-invalid-visual {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.82) !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.34),
        0 0 0 6px
            rgba(251,113,133,.12),
        0 0 26px
            rgba(251,113,133,.14)
        !important;
}


/* ------------------------------------------------------------
   3. Register:
   gx-doc-invalid puede vivir en input-group.

   Ese wrapper es estructural.
   El halo debe aparecer en el input real.
   ------------------------------------------------------------ */

body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid {

    border-color:
        transparent !important;

    outline:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;

    animation:
        none !important;
}


body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid
>
#gxRegisterDocument {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.82) !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.34),
        0 0 0 6px
            rgba(251,113,133,.12),
        0 0 26px
            rgba(251,113,133,.14)
        !important;
}


/* ------------------------------------------------------------
   4. Select personalizado de tipo de documento.

   El SELECT nativo no es la caja visual.
   ------------------------------------------------------------ */

body.gx-register
.gx-auth-doc-select-trigger.gx-doc-invalid,

body.gx-register
.gx-auth-doc-select-trigger.gx-validation-invalid-visual {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.82) !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.34),
        0 0 0 6px
            rgba(251,113,133,.12),
        0 0 26px
            rgba(251,113,133,.14)
        !important;
}


/* ------------------------------------------------------------
   5. Pulso:
   nunca debe convertir el wrapper AUTH en rectangulo.
   ------------------------------------------------------------ */

.register-card
.input-group.gx-validation-invalid-pulse,

.recover-card
.input-group.gx-validation-invalid-pulse,

.reset-card
.input-group.gx-validation-invalid-pulse {

    animation:
        none !important;

    box-shadow:
        none !important;
}



/* ============================================================
   GX_INVALID_PRECISION_VISUAL_V4

   Objetivos:
   1. Un solo halo sobre el control visible.
   2. Nunca dibujar rectangulo en wrapper AUTH.
   3. Autofill Chrome/Edge conserva fondo GAMMA.
   ============================================================ */


/* ------------------------------------------------------------
   AUTH WRAPPERS:
   solamente estructura, nunca halo.
   ------------------------------------------------------------ */

.register-card
.input-group.gx-validation-invalid-wrap,

.recover-card
.input-group.gx-validation-invalid-wrap,

.reset-card
.input-group.gx-validation-invalid-wrap,

.register-card
.auth-field.gx-validation-invalid-wrap,

.recover-card
.auth-field.gx-validation-invalid-wrap,

.reset-card
.auth-field.gx-validation-invalid-wrap,

.register-card
.input-group.gx-validation-invalid-pulse,

.recover-card
.input-group.gx-validation-invalid-pulse,

.reset-card
.input-group.gx-validation-invalid-pulse {

    border-color:
        transparent !important;

    outline:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;

    animation:
        none !important;
}


/* ------------------------------------------------------------
   CONTROL INVALIDO REAL V4
   ------------------------------------------------------------ */

.register-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4,

.register-card
.auth-form
.input-group
>
select.gx-invalid-precision-v4,

.register-card
.auth-form
.input-group
>
textarea.gx-invalid-precision-v4,

.recover-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4,

.recover-card
.auth-form
.input-group
>
select.gx-invalid-precision-v4,

.recover-card
.auth-form
.input-group
>
textarea.gx-invalid-precision-v4,

.reset-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4,

.reset-card
.auth-form
.input-group
>
select.gx-invalid-precision-v4,

.reset-card
.auth-form
.input-group
>
textarea.gx-invalid-precision-v4,

body.gx-register
.gx-auth-doc-select-trigger.gx-invalid-precision-v4 {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.88) !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.38),
        0 0 0 6px
            rgba(251,113,133,.13),
        0 0 26px
            rgba(251,113,133,.15)
        !important;
}


/* ------------------------------------------------------------
   REGISTER:
   si gx-doc-invalid queda en input-group,
   solo el input real debe dibujar el halo.
   ------------------------------------------------------------ */

body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid {

    border-color:
        transparent !important;

    outline:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;
}


body.gx-register
.gx-register-step1-form
.input-group.gx-doc-invalid
>
#gxRegisterDocument {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.88) !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.38),
        0 0 0 6px
            rgba(251,113,133,.13),
        0 0 26px
            rgba(251,113,133,.15)
        !important;
}


/* ------------------------------------------------------------
   AUTOFILL AUTH
   Fondo real observado del campo GAMMA: #16253e.

   No se desactiva autocomplete.
   ------------------------------------------------------------ */

.register-card
.input-group
>
input:-webkit-autofill,

.register-card
.input-group
>
input:-webkit-autofill:hover,

.register-card
.input-group
>
input:-webkit-autofill:focus,

.register-card
.input-group
>
input:-webkit-autofill:active,

.recover-card
.input-group
>
input:-webkit-autofill,

.recover-card
.input-group
>
input:-webkit-autofill:hover,

.recover-card
.input-group
>
input:-webkit-autofill:focus,

.recover-card
.input-group
>
input:-webkit-autofill:active,

.reset-card
.input-group
>
input:-webkit-autofill,

.reset-card
.input-group
>
input:-webkit-autofill:hover,

.reset-card
.input-group
>
input:-webkit-autofill:focus,

.reset-card
.input-group
>
input:-webkit-autofill:active {

    -webkit-text-fill-color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;

    color:
        #e2e8f0 !important;

    border-radius:
        20px !important;

    background-image:
        none !important;

    -webkit-box-shadow:
        0 0 0 1000px
        #16253e
        inset !important;

    box-shadow:
        0 0 0 1000px
        #16253e
        inset !important;

    transition:
        background-color 99999s
        ease-out 0s,
        color 99999s
        ease-out 0s
        !important;
}


/* ------------------------------------------------------------
   AUTOFILL + INVALIDO:
   conservar fondo oscuro Y halo rojo.
   ------------------------------------------------------------ */

.register-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4:-webkit-autofill,

.recover-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4:-webkit-autofill,

.reset-card
.auth-form
.input-group
>
input.gx-invalid-precision-v4:-webkit-autofill {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.88) !important;

    -webkit-text-fill-color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;

    -webkit-box-shadow:
        0 0 0 1000px
            #16253e inset,
        0 0 0 1px
            rgba(251,113,133,.38),
        0 0 0 6px
            rgba(251,113,133,.13),
        0 0 26px
            rgba(251,113,133,.15)
        !important;

    box-shadow:
        0 0 0 1000px
            #16253e inset,
        0 0 0 1px
            rgba(251,113,133,.38),
        0 0 0 6px
            rgba(251,113,133,.13),
        0 0 26px
            rgba(251,113,133,.15)
        !important;
}


/* ------------------------------------------------------------
   Firefox autocomplete.
   ------------------------------------------------------------ */

.register-card input:-moz-autofill,
.recover-card input:-moz-autofill,
.reset-card input:-moz-autofill {

    background-color:
        #16253e !important;

    color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;

    border-radius:
        20px !important;
}



/* ============================================================
   GX_FIELD_FIRST_INVALID_VISUAL_V5

   El motor JS ya conoce el campo invalido.
   Esta capa garantiza que ESE control sea visible en rojo.

   No determina validez.
   No interpreta mensajes.
   No modifica reglas.
   ============================================================ */


/* ------------------------------------------------------------
   A. CONTROLES HTML REALES

   Aplica cuando el motor ya marco:
   - gx-validation-invalid-visual
   - gx-invalid-precision-v4
   - aria-invalid=true
   ------------------------------------------------------------ */

form
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]).gx-validation-invalid-visual,

form
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]).gx-invalid-precision-v4,

form
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"])[aria-invalid="true"],

form
select.gx-validation-invalid-visual,

form
select.gx-invalid-precision-v4,

form
select[aria-invalid="true"],

form
textarea.gx-validation-invalid-visual,

form
textarea.gx-invalid-precision-v4,

form
textarea[aria-invalid="true"] {

    border-color:
        rgba(251,113,133,.90) !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.40),
        0 0 0 6px
            rgba(251,113,133,.13),
        0 0 26px
            rgba(251,113,133,.16)
        !important;
}


/* ------------------------------------------------------------
   B. AUTH

   Los campos visibles de Login/Register/Recover/Reset
   tienen geometria redondeada propia.

   El halo va SIEMPRE sobre el input real.
   ------------------------------------------------------------ */

.auth-form
.input-group
>
.input-field.gx-validation-invalid-visual,

.auth-form
.input-group
>
.input-field.gx-invalid-precision-v4,

.auth-form
.input-group
>
.input-field[aria-invalid="true"],

.auth-form
.auth-field
>
.input-field.gx-validation-invalid-visual,

.auth-form
.auth-field
>
.input-field.gx-invalid-precision-v4,

.auth-form
.auth-field
>
.input-field[aria-invalid="true"] {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.92) !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.42),
        0 0 0 6px
            rgba(251,113,133,.14),
        0 0 28px
            rgba(251,113,133,.17)
        !important;
}


/* ------------------------------------------------------------
   C. WRAPPER AUTH

   Nunca volver a dibujar el rectangulo exterior.
   ------------------------------------------------------------ */

.auth-form
.input-group.gx-validation-invalid-wrap,

.auth-form
.input-group.gx-validation-invalid-pulse,

.auth-form
.auth-field.gx-validation-invalid-wrap,

.auth-form
.auth-field.gx-validation-invalid-pulse {

    border-color:
        transparent !important;

    outline:
        none !important;

    box-shadow:
        none !important;

    filter:
        none !important;

    animation:
        none !important;
}


/* ------------------------------------------------------------
   D. SELECT VISUAL PERSONALIZADO

   El select nativo puede estar oculto.
   El trigger visible recibe el mismo halo.
   ------------------------------------------------------------ */

form
.gx-auth-doc-select-trigger.gx-validation-invalid-visual,

form
.gx-auth-doc-select-trigger.gx-invalid-precision-v4,

form
.gx-auth-doc-select-trigger[aria-invalid="true"],

form
.custom-select-trigger.gx-validation-invalid-visual,

form
.custom-select-trigger.gx-invalid-precision-v4,

form
.custom-select-trigger[aria-invalid="true"] {

    border-color:
        rgba(251,113,133,.92) !important;

    outline:
        none !important;

    box-shadow:
        0 0 0 1px
            rgba(251,113,133,.42),
        0 0 0 6px
            rgba(251,113,133,.14),
        0 0 28px
            rgba(251,113,133,.17)
        !important;
}


/* ------------------------------------------------------------
   E. AUTOFILL AUTH

   Chrome/Edge puede imponer fondo blanco.
   Se conserva autocomplete pero se neutraliza ese fondo.
   ------------------------------------------------------------ */

.auth-form
input:-webkit-autofill,

.auth-form
input:-webkit-autofill:hover,

.auth-form
input:-webkit-autofill:focus,

.auth-form
input:-webkit-autofill:active {

    -webkit-text-fill-color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;

    color:
        #e2e8f0 !important;

    background-image:
        none !important;

    -webkit-box-shadow:
        0 0 0 1000px
            #16253e inset !important;

    box-shadow:
        0 0 0 1000px
            #16253e inset !important;

    transition:
        background-color 99999s
            ease-out 0s,
        color 99999s
            ease-out 0s
        !important;
}


/* ------------------------------------------------------------
   F. AUTOFILL + ERROR

   Fondo oscuro y halo simultaneamente.
   ------------------------------------------------------------ */

.auth-form
input.gx-validation-invalid-visual:-webkit-autofill,

.auth-form
input.gx-invalid-precision-v4:-webkit-autofill,

.auth-form
input[aria-invalid="true"]:-webkit-autofill {

    border-radius:
        20px !important;

    border-color:
        rgba(251,113,133,.92) !important;

    -webkit-text-fill-color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;

    -webkit-box-shadow:
        0 0 0 1000px
            #16253e inset,
        0 0 0 1px
            rgba(251,113,133,.42),
        0 0 0 6px
            rgba(251,113,133,.14),
        0 0 28px
            rgba(251,113,133,.17)
        !important;

    box-shadow:
        0 0 0 1000px
            #16253e inset,
        0 0 0 1px
            rgba(251,113,133,.42),
        0 0 0 6px
            rgba(251,113,133,.14),
        0 0 28px
            rgba(251,113,133,.17)
        !important;
}


/* ------------------------------------------------------------
   G. FIREFOX AUTOFILL
   ------------------------------------------------------------ */

.auth-form
input:-moz-autofill {

    background-color:
        #16253e !important;

    color:
        #e2e8f0 !important;

    caret-color:
        #e2e8f0 !important;
}



/* GX_GLOBAL_TOAST_TEXT_PUBLIC_ADMIN_V1 */


/* GAMMA_XG_TOAST_CASE_2026: titulos en mayusculas y mensajes sin transformacion CSS. */
#gamma-toast-container .gx-floating-toast .gx-toast-title {
  text-transform: uppercase !important;
}
#gamma-toast-container .gx-floating-toast .gx-toast-message {
  text-transform: none !important;
}
