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

.login-page {
    min-height: 100svh;
}

.login-shell {
    min-height: 100svh;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(420px, .85fr);
}


/* =======================================================
   BRAND
   ======================================================= */

.login-brand-symbol {
    flex: 0 0 auto;

    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border-radius: 13px;

    background:
        linear-gradient(
            145deg,
            var(--brand-primary),
            var(--brand-secondary)
        );

    box-shadow:
        0 10px 30px
        color-mix(
            in srgb,
            var(--brand-primary) 22%,
            transparent
        );

    color: white;

    font-size: 18px;
    font-weight: 850;
}


/* =======================================================
   SHOWCASE
   ======================================================= */

.login-showcase {
    position: relative;

    overflow: hidden;

    display: flex;

    padding: 54px;

    background:
        radial-gradient(
            circle at 20% 25%,
            color-mix(
                in srgb,
                var(--brand-primary) 17%,
                transparent
            ),
            transparent 31%
        ),
        radial-gradient(
            circle at 75% 70%,
            color-mix(
                in srgb,
                var(--brand-secondary) 15%,
                transparent
            ),
            transparent 34%
        ),
        #0b0d13;
}

.login-showcase::after {
    content: "";

    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, .018) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, .018) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        linear-gradient(
            to bottom right,
            #000,
            transparent 72%
        );

    pointer-events: none;
}

.login-showcase-inner {
    position: relative;
    z-index: 2;

    width: min(650px, 100%);

    display: flex;
    flex-direction: column;
}

.login-showcase-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    font-size: 16px;
}

.login-logo-image {
    max-width: 165px;
    max-height: 55px;

    object-fit: contain;
}

.login-showcase-copy {
    margin: auto 0;
}

.login-kicker {
    color: var(--brand-primary);

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .15em;
}

.login-showcase-copy h1 {
    max-width: 640px;

    margin: 14px 0 18px;

    font-size: clamp(
        42px,
        5.4vw,
        76px
    );

    line-height: .99;
    letter-spacing: -.055em;
}

.login-showcase-copy p {
    max-width: 510px;

    margin: 0;

    color: #8791a3;

    font-size: 14px;
    line-height: 1.7;
}

.login-showcase-status {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #8c96a8;

    font-size: 11px;
}

.status-dot {
    width: 7px;
    height: 7px;

    border-radius: 999px;

    background: var(--success);

    box-shadow:
        0 0 0 5px
        rgba(51, 209, 122, .07);
}


/* =======================================================
   DECORACIÓN
   ======================================================= */

.login-orb {
    position: absolute;

    border-radius: 999px;

    filter: blur(1px);
}

.login-orb-one {
    right: -130px;
    bottom: -170px;

    width: 430px;
    height: 430px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--brand-primary) 18%,
            transparent
        );
}

.login-orb-two {
    right: -45px;
    bottom: -85px;

    width: 250px;
    height: 250px;

    border:
        1px solid
        color-mix(
            in srgb,
            var(--brand-secondary) 15%,
            transparent
        );
}


/* =======================================================
   FORM SIDE
   ======================================================= */

.login-form-side {
    display: grid;
    place-items: center;

    padding:
        max(
            35px,
            env(safe-area-inset-top)
        )
        40px
        max(
            35px,
            env(safe-area-inset-bottom)
        );

    background: #090b10;
}

.login-form-card {
    width: min(
        400px,
        100%
    );
}

.login-mobile-brand {
    display: none;
}


/* =======================================================
   HEADING
   ======================================================= */

.login-heading > span {
    color: var(--brand-primary);

    font-size: 9px;
    font-weight: 850;

    letter-spacing: .15em;
}

.login-heading h2 {
    margin: 9px 0 7px;

    font-size: 30px;

    letter-spacing: -.04em;
}

.login-heading p {
    margin: 0;

    color: var(--muted);

    font-size: 12px;
}


/* =======================================================
   FORM
   ======================================================= */

.login-form {
    margin-top: 31px;
}

.form-field {
    margin-bottom: 17px;
}

.form-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 650;
}

.input-shell {
    min-height: 47px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 0 14px;

    border: 1px solid var(--border-strong);
    border-radius: 11px;

    background: #0e1118;

    color: #667185;

    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.input-shell:focus-within {
    border-color:
        color-mix(
            in srgb,
            var(--brand-primary) 58%,
            var(--border)
        );

    box-shadow:
        0 0 0 3px
        color-mix(
            in srgb,
            var(--brand-primary) 8%,
            transparent
        );

    color: var(--brand-primary);
}

.input-shell input {
    flex: 1;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--text);

    font-size: 12px;
}

.input-shell input::placeholder {
    color: #505a6b;
}


/* =======================================================
   REMEMBER
   ======================================================= */

.remember-row {
    display: flex;
    align-items: center;
    gap: 8px;

    margin: 4px 0 20px;

    color: var(--muted);

    font-size: 10px;
}

.remember-row input {
    accent-color: var(--brand-primary);
}


/* =======================================================
   BUTTON
   ======================================================= */

.primary-button {
    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--brand-primary),
            color-mix(
                in srgb,
                var(--brand-primary) 65%,
                var(--brand-secondary)
            )
        );

    color: #fff;

    cursor: pointer;

    font-weight: 750;

    box-shadow:
        0 13px 32px
        color-mix(
            in srgb,
            var(--brand-primary) 16%,
            transparent
        );
}

.login-submit {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    font-size: 12px;
}

.login-submit:hover {
    filter: brightness(1.05);
}

.login-submit:active {
    transform: translateY(1px);
}


/* =======================================================
   ALERT
   ======================================================= */

.form-alert {
    margin-top: 22px;

    padding: 12px 13px;

    border-radius: 10px;

    font-size: 10px;
}

.form-alert-danger {
    border:
        1px solid
        rgba(255, 92, 108, .17);

    background:
        rgba(255, 92, 108, .065);

    color: #ff8f9b;
}


/* =======================================================
   VERSION
   ======================================================= */

.login-version {
    margin-top: 25px;

    text-align: center;

    color: #4c5566;

    font-size: 9px;
}


/* =======================================================
   TABLET
   ======================================================= */

@media (max-width: 1050px) {

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-showcase {
        display: none;
    }

    .login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 11px;

        margin-bottom: 43px;
    }

    .login-brand-symbol-small {
        width: 38px;
        height: 38px;

        border-radius: 12px;

        font-size: 15px;
    }

}


/* =======================================================
   MOBILE
   ======================================================= */

@media (max-width: 760px) {

    /*
     * app.css agrega espacio inferior para
     * la navegación móvil del panel.
     *
     * El login no tiene esa navegación.
     */
    .login-page {
        padding-bottom: 0;
    }

    .login-form-side {
        align-items: start;

        padding:
            max(
                27px,
                env(safe-area-inset-top)
            )
            22px
            max(
                27px,
                env(safe-area-inset-bottom)
            );
    }

    .login-form-card {
        margin: auto;
    }

}