/* ================================================================
   GESTIQO ERP
   LOGIN
================================================================ */


/* ================================================================
   RESET
================================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    min-height: 100%;
}


body {
    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    color: #172033;

    background: #07111f;

    overflow-x: hidden;
}


button,
input {
    font: inherit;
}



/* ================================================================
   PÁGINA
================================================================ */

.login-page {

    position: relative;

    width: 100%;

    min-height: 100vh;

    display: flex;

    justify-content: center;

    align-items: center;

    padding: 32px;

    overflow: hidden;

    background:

        radial-gradient(
            circle at 15% 15%,
            rgba(31, 91, 150, .25),
            transparent 30%
        ),

        radial-gradient(
            circle at 90% 85%,
            rgba(255, 112, 31, .13),
            transparent 28%
        ),

        linear-gradient(
            135deg,
            #07111f 0%,
            #0a1729 45%,
            #0c1b30 100%
        );
}



/* ================================================================
   DECORACIÓN
================================================================ */

.background-decoration {

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(2px);
}


.decoration-one {

    width: 480px;
    height: 480px;

    left: -190px;
    top: -190px;

    background:
        radial-gradient(
            circle,
            rgba(36, 107, 176, .20),
            transparent 68%
        );
}


.decoration-two {

    width: 550px;
    height: 550px;

    right: -230px;
    bottom: -250px;

    background:
        radial-gradient(
            circle,
            rgba(255, 111, 30, .13),
            transparent 68%
        );
}


.background-grid {

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .22;

    background-image:

        linear-gradient(
            rgba(255,255,255,.025) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(255,255,255,.025) 1px,
            transparent 1px
        );

    background-size: 45px 45px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}



/* ================================================================
   CONTENEDOR PRINCIPAL
================================================================ */

.login-shell {

    position: relative;

    z-index: 5;

    width: min(1180px, 100%);

    min-height: 690px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.12fr)
        minmax(420px, .88fr);

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.11);

    border-radius: 30px;

    background: rgba(255,255,255,.04);

    box-shadow:
        0 45px 100px rgba(0,0,0,.45),
        0 8px 30px rgba(0,0,0,.22);

    animation:
        shellEntrance .65s ease both;
}



/* ================================================================
   PANEL IZQUIERDO
================================================================ */

.brand-panel {

    position: relative;

    min-height: 690px;

    overflow: hidden;

    display: flex;

    background:

        linear-gradient(
            135deg,
            rgba(7,17,31,.88),
            rgba(9,27,48,.78)
        ),

        url("../img/login-bg.jpg");

    background-size: cover;

    background-position: center;
}


.brand-panel::before {

    content: "";

    position: absolute;

    width: 360px;
    height: 360px;

    border-radius: 50%;

    right: -150px;
    top: -140px;

    border:
        1px solid rgba(255,255,255,.07);
}


.brand-panel::after {

    content: "";

    position: absolute;

    width: 240px;
    height: 240px;

    border-radius: 50%;

    right: -90px;
    top: -80px;

    border:
        1px solid rgba(255,255,255,.08);
}


.brand-panel-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(
            to bottom right,
            rgba(4,14,27,.16),
            rgba(5,17,32,.55)
        );
}


.brand-content {

    position: relative;

    z-index: 3;

    width: 100%;

    display: flex;

    flex-direction: column;

    padding:
        52px
        58px
        44px;
}



/* ================================================================
   LOGO IZQUIERDO
================================================================ */

.brand-logo-wrapper {

    min-height: 80px;

    display: flex;

    align-items: center;

    margin-bottom: 65px;
}


.brand-logo {

    display: block;

    width: 290px;

    max-width: 80%;

    height: auto;

    object-fit: contain;
}



/* ================================================================
   TEXTO MARCA
================================================================ */

.brand-copy {

    max-width: 520px;
}


.brand-label {

    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 20px;

    padding:
        8px
        13px;

    border:
        1px solid rgba(255,255,255,.12);

    border-radius: 999px;

    color: rgba(255,255,255,.75);

    background: rgba(255,255,255,.055);

    backdrop-filter: blur(8px);

    font-size: 12px;

    font-weight: 700;

    letter-spacing: .06em;

    text-transform: uppercase;
}


.brand-label-dot {

    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    border-radius: 50%;

    background: #ff7625;

    box-shadow:
        0 0 0 5px rgba(255,118,37,.12);
}


.brand-copy h1 {

    max-width: 520px;

    color: #ffffff;

    font-size:
        clamp(
            43px,
            4.2vw,
            62px
        );

    line-height: 1.02;

    letter-spacing: -.045em;

    font-weight: 760;
}


.brand-copy h1 span {

    display: block;

    margin-top: 5px;

    color: #ff7625;
}


.brand-description {

    max-width: 480px;

    margin-top: 24px;

    color: rgba(229,238,248,.72);

    font-size: 16px;

    line-height: 1.75;
}



/* ================================================================
   MÓDULOS
================================================================ */

.module-grid {

    width: 100%;

    max-width: 530px;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 42px;
}


.module-card {

    min-height: 76px;

    display: flex;

    align-items: center;

    gap: 13px;

    padding:
        14px
        15px;

    border:
        1px solid rgba(255,255,255,.10);

    border-radius: 15px;

    background:
        rgba(255,255,255,.045);

    backdrop-filter:
        blur(10px);

    transition:
        transform .25s ease,
        background .25s ease,
        border-color .25s ease;
}


.module-card:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(255,118,37,.35);

    background:
        rgba(255,255,255,.075);
}


.module-icon {

    width: 43px;
    height: 43px;

    flex: 0 0 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    color: #ff7625;

    background:
        rgba(255,118,37,.10);

    border:
        1px solid rgba(255,118,37,.13);
}


.module-icon svg {

    width: 21px;
    height: 21px;
}


.module-card strong {

    display: block;

    margin-bottom: 4px;

    color: #ffffff;

    font-size: 14px;

    font-weight: 700;
}


.module-card span {

    display: block;

    color: rgba(225,235,245,.56);

    font-size: 11.5px;
}



/* ================================================================
   FOOTER IZQUIERDO
================================================================ */

.brand-footer {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-top: auto;

    padding-top: 30px;

    color:
        rgba(220,232,244,.53);

    font-size: 12px;
}


.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #34d399;

    box-shadow:
        0 0 0 4px rgba(52,211,153,.10);
}



/* ================================================================
   PANEL DERECHO
================================================================ */

.form-panel {

    position: relative;

    display: flex;

    justify-content: center;

    align-items: center;

    padding:
        48px
        55px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f8fafc
        );
}


.form-panel::before {

    content: "";

    position: absolute;

    left: 0;
    top: 10%;
    bottom: 10%;

    width: 1px;

    background:
        linear-gradient(
            transparent,
            rgba(15,23,42,.08),
            transparent
        );
}



/* ================================================================
   TARJETA
================================================================ */

.login-card {

    width: 100%;

    max-width: 410px;

    animation:
        cardEntrance .7s .10s ease both;
}



/* ================================================================
   LOGO FORMULARIO
================================================================ */

.login-logo {

    display: flex;

    align-items: center;

    min-height: 65px;

    margin-bottom: 28px;
}


.login-logo img {

    display: block;

    width: 205px;

    max-width: 70%;

    height: auto;

    object-fit: contain;
}



/* ================================================================
   ENCABEZADO LOGIN
================================================================ */

.login-heading {

    margin-bottom: 30px;
}


.welcome-label {

    display: block;

    margin-bottom: 10px;

    color: #f26a21;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: .11em;
}


.login-heading h2 {

    color: #101827;

    font-size: 31px;

    line-height: 1.15;

    letter-spacing: -.035em;

    font-weight: 760;
}


.login-heading p {

    margin-top: 9px;

    color: #7a8799;

    font-size: 14px;

    line-height: 1.6;
}



/* ================================================================
   ERROR
================================================================ */

.login-alert {

    display: flex;

    align-items: flex-start;

    gap: 12px;

    margin-bottom: 22px;

    padding: 13px 14px;

    border:
        1px solid #fecaca;

    border-radius: 12px;

    background: #fff5f5;

    color: #991b1b;

    animation:
        alertEntrance .3s ease both;
}


.alert-icon {

    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 9px;

    background: #fee2e2;
}


.alert-icon svg {

    width: 17px;
    height: 17px;
}


.login-alert strong {

    display: block;

    margin-bottom: 3px;

    font-size: 12.5px;
}


.login-alert span {

    display: block;

    color: #b42318;

    font-size: 12px;

    line-height: 1.4;
}



/* ================================================================
   CAMPOS
================================================================ */

.form-field {

    margin-bottom: 19px;
}


.form-field label {

    display: block;

    margin-bottom: 8px;

    color: #344054;

    font-size: 13px;

    font-weight: 650;
}


.input-wrapper {

    position: relative;
}


.input-wrapper input {

    width: 100%;

    height: 53px;

    padding:
        0
        48px;

    border:
        1px solid #d8dee8;

    border-radius: 12px;

    outline: none;

    color: #172033;

    background: #ffffff;

    font-size: 14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}


.input-wrapper input::placeholder {

    color: #a4adba;
}


.input-wrapper input:hover {

    border-color: #bec7d3;
}


.input-wrapper input:focus {

    border-color: #ff7625;

    background: #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(255,118,37,.10);
}



/* ================================================================
   ICONOS INPUT
================================================================ */

.input-icon {

    position: absolute;

    z-index: 2;

    left: 16px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 19px;
    height: 19px;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #8c98a9;

    pointer-events: none;

    transition:
        color .2s ease;
}


.input-icon svg {

    width: 18px;
    height: 18px;
}


.input-wrapper:focus-within
.input-icon {

    color: #ff7625;
}



/* ================================================================
   MOSTRAR CONTRASEÑA
================================================================ */

.password-toggle {

    position: absolute;

    z-index: 3;

    right: 9px;

    top: 50%;

    transform:
        translateY(-50%);

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 9px;

    outline: none;

    cursor: pointer;

    color: #8c98a9;

    background: transparent;

    transition:
        color .2s ease,
        background .2s ease;
}


.password-toggle:hover {

    color: #ff7625;

    background:
        rgba(255,118,37,.07);
}


.password-toggle svg {

    width: 19px;
    height: 19px;
}


.password-toggle.visible {

    color: #ff7625;

    background:
        rgba(255,118,37,.07);
}



/* ================================================================
   OPCIONES
================================================================ */

.form-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        2px
        0
        24px;
}


.remember-option {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    cursor: pointer;

    color: #667085;

    font-size: 12.5px;

    user-select: none;
}


.remember-option input {

    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.custom-checkbox {

    width: 18px;
    height: 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #cbd3df;

    border-radius: 5px;

    color: transparent;

    background: #ffffff;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}


.custom-checkbox svg {

    width: 12px;
    height: 12px;
}


.remember-option
input:checked
+
.custom-checkbox {

    border-color: #ff7625;

    background: #ff7625;

    color: #ffffff;
}



/* ================================================================
   BOTÓN LOGIN
================================================================ */

.login-button {

    position: relative;

    width: 100%;

    height: 54px;

    overflow: hidden;

    border: none;

    border-radius: 12px;

    cursor: pointer;

    color: #ffffff;

    background:

        linear-gradient(
            110deg,
            #ff812c,
            #f2631c
        );

    box-shadow:
        0 10px 25px
        rgba(242,99,28,.20);

    font-size: 14px;

    font-weight: 750;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        filter .2s ease;
}


.login-button::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            110deg,
            transparent,
            rgba(255,255,255,.15),
            transparent
        );

    transform:
        translateX(-100%);

    transition:
        transform .45s ease;
}


.login-button:hover {

    transform:
        translateY(-1px);

    box-shadow:
        0 15px 30px
        rgba(242,99,28,.28);

    filter:
        saturate(1.05);
}


.login-button:hover::before {

    transform:
        translateX(100%);
}


.login-button:active {

    transform:
        translateY(0);
}


.login-button:disabled {

    cursor: wait;

    opacity: .88;

    transform: none;
}


.btn-content {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;
}


.btn-content svg {

    width: 18px;
    height: 18px;

    transition:
        transform .2s ease;
}


.login-button:hover
.btn-content svg {

    transform:
        translateX(3px);
}



/* ================================================================
   LOADER
================================================================ */

.btn-loading {

    position: relative;

    z-index: 3;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;
}


.loader {

    width: 17px;
    height: 17px;

    border:
        2px solid rgba(255,255,255,.35);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        loaderSpin .65s linear infinite;
}



/* ================================================================
   SEGURIDAD
================================================================ */

.security-info {

    display: flex;

    align-items: center;

    gap: 11px;

    margin-top: 25px;

    padding:
        13px
        14px;

    border:
        1px solid #e8ecf2;

    border-radius: 12px;

    background: #fafbfc;
}


.security-icon {

    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: #17845f;

    background: #eaf8f3;
}


.security-icon svg {

    width: 18px;
    height: 18px;
}


.security-info strong {

    display: block;

    margin-bottom: 2px;

    color: #475467;

    font-size: 11.5px;
}


.security-info span {

    display: block;

    color: #98a2b3;

    font-size: 10.5px;

    line-height: 1.4;
}



/* ================================================================
   VERSIÓN
================================================================ */

.login-version {

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 9px;

    margin-top: 20px;

    color: #a0a9b6;

    font-size: 10.5px;
}


.version-divider {

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #c5cbd4;
}



/* ================================================================
   ANIMACIONES
================================================================ */

@keyframes shellEntrance {

    from {

        opacity: 0;

        transform:
            translateY(15px)
            scale(.99);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes cardEntrance {

    from {

        opacity: 0;

        transform:
            translateX(15px);
    }

    to {

        opacity: 1;

        transform:
            translateX(0);
    }
}


@keyframes alertEntrance {

    from {

        opacity: 0;

        transform:
            translateY(-5px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes loaderSpin {

    to {

        transform:
            rotate(360deg);
    }
}



/* ================================================================
   PANTALLAS MEDIANAS
================================================================ */

@media
(max-width: 1100px) {

    .login-page {

        padding: 22px;
    }


    .login-shell {

        grid-template-columns:
            minmax(0, 1fr)
            minmax(390px, .9fr);
    }


    .brand-content {

        padding:
            45px
            40px
            38px;
    }


    .brand-logo-wrapper {

        margin-bottom: 50px;
    }


    .brand-logo {

        width: 245px;
    }


    .brand-copy h1 {

        font-size: 47px;
    }


    .form-panel {

        padding:
            45px
            38px;
    }
}



/* ================================================================
   TABLET / MÓVIL
================================================================ */

@media
(max-width: 850px) {

    body {

        background: #07111f;
    }


    .login-page {

        min-height: 100vh;

        padding: 22px;
    }


    .login-shell {

        width: 100%;

        max-width: 500px;

        min-height: auto;

        display: block;

        border-radius: 24px;

        background: #ffffff;
    }


    .brand-panel {

        min-height: auto;

        display: block;

        background:

            linear-gradient(
                135deg,
                #081729,
                #0d2947
            );
    }


    .brand-content {

        padding:
            26px
            30px;
    }


    .brand-logo-wrapper {

        min-height: 0;

        margin: 0;
    }


    .brand-logo {

        width: 190px;

        max-width: 70%;
    }


    .brand-copy,
    .module-grid,
    .brand-footer {

        display: none;
    }


    .form-panel {

        padding:
            38px
            36px
            35px;

        background: #ffffff;
    }


    .form-panel::before {

        display: none;
    }


    .login-logo {

        display: none;
    }


    .login-heading {

        margin-bottom: 27px;
    }
}



/* ================================================================
   CELULARES
================================================================ */

@media
(max-width: 520px) {

    .login-page {

        padding: 12px;

        align-items: center;
    }


    .login-shell {

        border-radius: 20px;
    }


    .brand-content {

        padding:
            22px
            24px;
    }


    .brand-logo {

        width: 170px;
    }


    .form-panel {

        padding:
            32px
            24px
            28px;
    }


    .login-heading h2 {

        font-size: 27px;
    }


    .login-heading p {

        font-size: 13px;
    }


    .input-wrapper input {

        height: 51px;

        font-size: 13px;
    }


    .login-button {

        height: 52px;
    }


    .security-info {

        padding:
            12px;
    }
}



/* ================================================================
   ALTURA REDUCIDA
================================================================ */

@media
(max-height: 760px)
and
(min-width: 851px) {

    .login-page {

        padding:
            18px
            28px;
    }


    .login-shell {

        min-height: 620px;
    }


    .brand-panel {

        min-height: 620px;
    }


    .brand-content {

        padding:
            38px
            50px
            32px;
    }


    .brand-logo-wrapper {

        margin-bottom: 35px;
    }


    .brand-logo {

        width: 245px;
    }


    .brand-copy h1 {

        font-size: 48px;
    }


    .brand-description {

        margin-top: 17px;
    }


    .module-grid {

        margin-top: 28px;
    }


    .module-card {

        min-height: 68px;
    }


    .form-panel {

        padding:
            32px
            50px;
    }


    .login-logo {

        margin-bottom: 20px;
    }


    .login-heading {

        margin-bottom: 22px;
    }


    .form-field {

        margin-bottom: 15px;
    }


    .security-info {

        margin-top: 18px;
    }


    .login-version {

        margin-top: 14px;
    }
}



/* ================================================================
   ACCESIBILIDAD
================================================================ */

@media
(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            .01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .01ms !important;
    }
}