* {
    box-sizing: border-box;
}


:root {
    --negro: #171717;
    --negro-suave: #20211f;

    --blanco: #ffffff;

    --fondo: #f3f1ed;
    --borde: #dfddd7;

    --gris: #77736d;
    --gris-oscuro: #47443f;

    --arena: #c9baa0;
    --arena-claro: #eee8df;

    --mar: #607b7a;
    --mar-oscuro: #354d4d;

    --rojo: #ad3131;
}


html,
body {
    margin: 0;

    min-height: 100%;
}


body {
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at 15% 15%,
            rgba(201, 186, 160, .18),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            #f6f4f0,
            #ebe8e2
        );

    color: var(--negro);
}


button,
input {
    font: inherit;
}


/* ==================================================
   PÁGINA
================================================== */

.login-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 34px;
}


/* ==================================================
   CONTENEDOR GENERAL
================================================== */

.login-shell {
    width: min(
        1080px,
        100%
    );

    min-height: 620px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(430px, .95fr);

    overflow: hidden;

    border:
        1px solid
        rgba(0, 0, 0, .06);

    border-radius: 26px;

    background: #ffffff;

    box-shadow:
        0 28px 75px
        rgba(30, 27, 22, .15);
}


/* ==================================================
   PANEL DE IDENTIDAD
================================================== */

.login-brand {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #171717 0%,
            #1e201e 58%,
            #344341 100%
        );

    color: #ffffff;
}


.login-brand::after {
    content: '';

    position: absolute;

    inset:
        auto
        -25%
        -35%
        auto;

    width: 460px;
    height: 460px;

    border:
        1px solid
        rgba(201, 186, 160, .20);

    border-radius: 50%;
}


.login-brand-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.login-brand-decoration-1 {
    top: -130px;
    right: -100px;

    width: 350px;
    height: 350px;

    background:
        radial-gradient(
            circle,
            rgba(201, 186, 160, .18),
            transparent 68%
        );
}


.login-brand-decoration-2 {
    bottom: 70px;
    left: -130px;

    width: 330px;
    height: 330px;

    background:
        radial-gradient(
            circle,
            rgba(96, 123, 122, .28),
            transparent 68%
        );
}


.login-brand-content {
    position: relative;

    z-index: 2;

    min-height: 100%;

    display: flex;

    flex-direction: column;

    padding:
        54px
        58px
        46px;
}


.login-logo {
    display: block;

    width: min(
        360px,
        90%
    );

    height: auto;

    filter:
        brightness(0)
        invert(1);

    opacity: .97;
}


.login-brand-copy {
    max-width: 400px;

    margin-top: auto;
    margin-bottom: auto;

    padding:
        65px
        0
        55px;
}


.login-brand-eyebrow {
    display: inline-block;

    margin-bottom: 15px;

    color: var(--arena);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}


.login-brand-copy h2 {
    max-width: 390px;

    margin:
        0
        0
        18px;

    font-size: clamp(
        32px,
        4vw,
        48px
    );

    line-height: 1.03;

    letter-spacing: -1.5px;
}


.login-brand-copy p {
    max-width: 370px;

    margin: 0;

    color:
        rgba(255, 255, 255, .70);

    font-size: 15px;

    line-height: 1.7;
}


.login-brand-footer {
    color:
        rgba(255, 255, 255, .46);

    font-size: 10px;

    letter-spacing: 1.3px;

    text-transform: uppercase;
}


/* ==================================================
   PANEL DE ACCESO
================================================== */

.login-access {
    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        55px
        58px;

    background: #ffffff;
}


.login-form-container {
    width: 100%;
    max-width: 390px;
}


.login-mobile-logo {
    display: none;
}


.login-heading {
    margin-bottom: 35px;
}


.login-heading > span {
    display: inline-block;

    margin-bottom: 9px;

    color: var(--mar-oscuro);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.7px;

    text-transform: uppercase;
}


.login-heading h1 {
    margin:
        0
        0
        9px;

    font-size: 34px;

    letter-spacing: -.8px;
}


.login-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 14px;

    line-height: 1.5;
}


/* ==================================================
   FORMULARIO
================================================== */

.campo {
    margin-bottom: 21px;
}


.campo label {
    display: block;

    margin-bottom: 8px;

    color: #2a2927;

    font-size: 12px;
    font-weight: 700;
}


.campo input {
    width: 100%;

    height: 50px;

    padding:
        0
        14px;

    border:
        1px solid
        #d6d3ce;

    border-radius: 10px;

    background:
        #faf9f7;

    color: var(--negro);

    font-size: 15px;

    outline: none;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}


.campo input:hover {
    border-color:
        #c1bdb6;
}


.campo input:focus {
    border-color:
        var(--arena);

    background:
        #ffffff;

    box-shadow:
        0 0 0 4px
        rgba(201, 186, 160, .18);
}


/* ==================================================
   CONTRASEÑA
================================================== */

.password-wrapper {
    position: relative;

    width: 100%;
}


.password-wrapper input {
    padding-right: 52px;
}


.password-toggle {
    position: absolute;

    top: 50%;
    right: 8px;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    transform:
        translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 8px;

    background: transparent;

    color: #66615b;

    cursor: pointer;
}


.password-toggle:hover {
    background:
        var(--arena-claro);

    color: var(--negro);
}


.password-toggle svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   MENSAJE
================================================== */

.mensaje {
    min-height: 21px;

    margin:
        -2px
        0
        8px;

    color: var(--rojo);

    font-size: 12px;

    line-height: 1.4;
}


.mensaje:not(:empty) {
    margin-bottom: 14px;

    padding:
        10px
        12px;

    border:
        1px solid
        #edc9c9;

    border-radius: 8px;

    background:
        #fff3f3;
}


/* ==================================================
   BOTÓN
================================================== */

.login-submit {
    width: 100%;

    height: 52px;

    margin-top: 3px;

    border: 0;
    border-radius: 10px;

    background: var(--negro);

    color: #ffffff;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .15s ease,
        background .15s ease,
        opacity .15s ease;
}


.login-submit:hover:not(:disabled) {
    background: #242424;

    transform:
        translateY(-1px);
}


.login-submit:active:not(:disabled) {
    transform:
        translateY(0);
}


.login-submit:disabled {
    opacity: .55;

    cursor: wait;

    transform: none;
}


.login-help {
    margin-top: 24px;

    color: #98928a;

    font-size: 10px;

    line-height: 1.5;

    text-align: center;
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 900px) {

    .login-page {
        padding: 26px;
    }


    .login-shell {
        grid-template-columns:
            minmax(0, .85fr)
            minmax(390px, 1fr);

        min-height: 590px;
    }


    .login-brand-content {
        padding:
            45px
            38px
            38px;
    }


    .login-logo {
        width: 280px;
    }


    .login-brand-copy {
        padding:
            45px
            0;
    }


    .login-brand-copy h2 {
        font-size: 34px;
    }


    .login-access {
        padding:
            45px
            42px;
    }

}


/* ==================================================
   MÓVIL / TABLET VERTICAL
================================================== */

@media (max-width: 700px) {

    body {
        background:
            linear-gradient(
                180deg,
                #ece7df 0%,
                #f5f3ef 42%,
                #efede8 100%
            );
    }


    .login-page {
        align-items: center;

        padding:
            24px
            18px;
    }


    .login-shell {
        width: 100%;
        max-width: 430px;

        min-height: 0;

        display: block;

        border-radius: 24px;

        box-shadow:
            0 20px 55px
            rgba(30, 27, 22, .13);
    }


    .login-brand {
        display: none;
    }


    .login-access {
        display: block;

        padding:
            37px
            31px
            34px;
    }


    .login-form-container {
        max-width: none;
    }


    .login-mobile-logo {
        display: block;

        margin-bottom: 37px;

        text-align: center;
    }


    .login-mobile-logo img {
        width: min(
            290px,
            90%
        );

        height: auto;
    }


    .login-heading {
        margin-bottom: 29px;
    }


    .login-heading > span {
        margin-bottom: 7px;
    }


    .login-heading h1 {
        font-size: 30px;
    }


    .campo {
        margin-bottom: 19px;
    }


    .campo input {
        height: 52px;
    }


    .login-submit {
        height: 54px;
    }


    .login-help {
        margin-top: 20px;
    }

}


/* ==================================================
   MÓVIL PEQUEÑO
================================================== */

@media (max-width: 390px) {

    .login-page {
        padding:
            18px
            12px;
    }


    .login-access {
        padding:
            31px
            23px
            29px;
    }


    .login-mobile-logo {
        margin-bottom: 30px;
    }


    .login-mobile-logo img {
        width: 245px;
    }


    .login-heading h1 {
        font-size: 28px;
    }

}