/* =========================================================
   KUSKA+ — LOGIN
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Parkinsans:wght@400;500;600;700;800&display=swap');


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --kuska-red: #ED484A;
    --kuska-red-dark: #d93c3e;

    --kuska-bg: #FCF0D9;

    --kuska-black: #111111;

    --kuska-gray: #686868;

    --kuska-border: #ddd7ce;

    --kuska-white: #ffffff;

}


/* =========================================================
   RESET
========================================================= */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html,
body {

    width: 100%;
    min-height: 100%;

}


body {

    font-family: 'Parkinsans', sans-serif;

    background: var(--kuska-bg);

    color: var(--kuska-black);

    overflow-x: hidden;

}


a {

    color: inherit;

    text-decoration: none;

}


button,
input {

    font-family: inherit;

}



/* =========================================================
   PÁGINA
========================================================= */

.login-page {

    width: 100%;

    min-height: 100vh;

    display: grid;

    grid-template-columns: 46% 54%;

    background: var(--kuska-bg);

}



/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.login-brand {

    position: relative;

    min-height: 100vh;

    overflow: hidden;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--kuska-red);

}



/* =========================================================
   CARRUSEL
========================================================= */

.login-carousel {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    z-index: 0;

}


.login-slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    transition:
        opacity 1.2s ease;

}


.login-slide.active {

    opacity: 1;

}


.login-slide img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center;

}



/* =========================================================
   OVERLAY DEL CARRUSEL
========================================================= */

.login-carousel-overlay {

    position: absolute;

    inset: 0;

    z-index: 2;

    background:

        linear-gradient(
            135deg,
            rgba(237, 72, 74, .88),
            rgba(217, 60, 62, .68)
        );

    pointer-events: none;

}



/* =========================================================
   PATRÓN
========================================================= */

.login-pattern {

    position: absolute;

    pointer-events: none;

    z-index: 4;

}


.login-pattern-top {

    top: -20px;

    left: -25px;

    width: 180px;

    opacity: .25;

}


.login-pattern-top img {

    width: 100%;

    height: auto;

    display: block;

}



/* =========================================================
   CONTENIDO DE MARCA
========================================================= */

.login-brand-content {

    position: relative;

    z-index: 5;

    width: 75%;

    max-width: 500px;

    text-align: left;

}



/* =========================================================
   LOGO
========================================================= */

.login-brand-logo {

    display: inline-flex;

    align-items: center;

    margin-bottom: 45px;

}


.login-brand-logo img {

    width: 230px;

    height: auto;

    display: block;

}



/* =========================================================
   TÍTULO
========================================================= */

.login-brand-content h1 {

    color: var(--kuska-white);

    font-size: clamp(48px, 4.5vw, 70px);

    line-height: .98;

    letter-spacing: -2.5px;

    font-weight: 800;

    margin-bottom: 25px;

}


.login-brand-content h1 span {

    display: block;

    color: var(--kuska-bg);

}



/* =========================================================
   TEXTO
========================================================= */

.login-brand-content p {

    max-width: 390px;

    color: rgba(255, 255, 255, .9);

    font-size: 16px;

    line-height: 1.5;

}



/* =========================================================
   DECORACIÓN INFERIOR
========================================================= */

.login-brand-decoration {

    position: absolute;

    bottom: 45px;

    left: 10%;

    display: flex;

    align-items: center;

    gap: 8px;

    z-index: 5;

}


.login-brand-decoration span {

    display: block;

    width: 45px;

    height: 5px;

    border-radius: 10px;

    background: rgba(255, 255, 255, .7);

}


.login-brand-decoration span:nth-child(2) {

    width: 18px;

    opacity: .5;

}


.login-brand-decoration span:nth-child(3) {

    width: 8px;

    opacity: .3;

}



/* =========================================================
   PANEL FORMULARIO
========================================================= */

.login-form-section {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 50px 40px;

    background: var(--kuska-bg);

}



/* =========================================================
   CONTENEDOR
========================================================= */

.login-form-container {

    width: 100%;

    max-width: 440px;

}



/* =========================================================
   VOLVER
========================================================= */

.login-back {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 55px;

    color: #555;

    font-size: 13px;

    font-weight: 600;

    transition:
        color .25s ease,
        transform .25s ease;

}


.login-back span {

    font-size: 22px;

    line-height: 0;

    font-weight: 400;

}


.login-back:hover {

    color: var(--kuska-red);

    transform: translateX(-3px);

}



/* =========================================================
   ENCABEZADO
========================================================= */

.login-heading {

    margin-bottom: 30px;

}


.login-eyebrow {

    display: block;

    margin-bottom: 7px;

    color: var(--kuska-red);

    font-size: 15px;

    font-weight: 800;

}


.login-heading h2 {

    color: var(--kuska-black);

    font-size: 44px;

    line-height: 1;

    letter-spacing: -1.5px;

    font-weight: 800;

    margin-bottom: 12px;

}


.login-heading p {

    color: var(--kuska-gray);

    font-size: 14px;

    line-height: 1.4;

}



/* =========================================================
   GOOGLE
========================================================= */

.login-google {

    width: 100%;

    min-width: 0;

    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--kuska-border);

    border-radius: 8px;

    background: var(--kuska-white);

    color: var(--kuska-black);

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;

}


.login-google:hover {

    border-color: #bcb5aa;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .07);

    transform: translateY(-1px);

}



/* =========================================================
   GOOGLE ICON
========================================================= */

.google-icon {

    width: 22px;

    height: 22px;

    min-width: 22px;

    max-width: 22px;

    flex: 0 0 22px;

    display: flex;

    align-items: center;

    justify-content: center;

    overflow: hidden;

}


.google-icon img {

    display: block;

    width: 100%;

    height: 100%;

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

}


.google-text {

    min-width: 0;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

}



/* =========================================================
   DIVISOR
========================================================= */

.login-divider {

    display: flex;

    align-items: center;

    gap: 12px;

    margin: 25px 0;

}


.login-divider span {

    flex: 1;

    height: 1px;

    background: #d8d1c7;

}


.login-divider p {

    color: #888;

    font-size: 12px;

}



/* =========================================================
   FORMULARIO
========================================================= */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}



/* =========================================================
   CAMPO
========================================================= */

.login-field {

    width: 100%;

}


.login-field label {

    display: block;

    margin-bottom: 8px;

    color: var(--kuska-black);

    font-size: 13px;

    font-weight: 700;

}



/* =========================================================
   INPUT
========================================================= */

.login-field input {

    width: 100%;

    height: 52px;

    padding: 0 16px;

    border: 1px solid var(--kuska-border);

    border-radius: 8px;

    outline: none;

    background: var(--kuska-white);

    color: var(--kuska-black);

    font-size: 14px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease;

}


.login-field input::placeholder {

    color: #aaa;

}


.login-field input:focus {

    border-color: var(--kuska-red);

    box-shadow:
        0 0 0 3px rgba(237, 72, 74, .10);

}



/* =========================================================
   LABEL CONTRASEÑA
========================================================= */

.login-password-label {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.login-password-label label {

    margin-bottom: 8px;

}


.login-password-label a {

    margin-bottom: 8px;

    color: var(--kuska-red);

    font-size: 11px;

    font-weight: 700;

}


.login-password-label a:hover {

    text-decoration: underline;

}



/* =========================================================
   PASSWORD
========================================================= */

.login-password-input {

    position: relative;

}


.login-password-input input {

    padding-right: 50px;

}


.login-show-password {

    position: absolute;

    top: 50%;

    right: 14px;

    transform: translateY(-50%);

    width: 28px;

    height: 28px;

    padding: 0;

    border: none;

    background: transparent;

    color: #999;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 13px;

}


.login-show-password:hover {

    color: var(--kuska-red);

}



/* =========================================================
   BOTÓN LOGIN
========================================================= */

.login-submit {

    width: 100%;

    height: 52px;

    margin-top: 3px;

    padding: 0 18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 8px;

    background: var(--kuska-red);

    color: var(--kuska-white);

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease,
        box-shadow .25s ease;

}


.login-submit span:last-child {

    font-size: 27px;

    line-height: 0;

    font-weight: 400;

}


.login-submit:hover {

    background: var(--kuska-red-dark);

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(237, 72, 74, .25);

}



/* =========================================================
   REGISTRO
========================================================= */

.login-register {

    margin-top: 28px;

    text-align: center;

}


.login-register p {

    display: inline;

    color: #777;

    font-size: 12px;

}


.login-register a {

    margin-left: 5px;

    color: var(--kuska-red);

    font-size: 12px;

    font-weight: 700;

}


.login-register a:hover {

    text-decoration: underline;

}



/* =========================================================
   SEGURIDAD
========================================================= */

.login-security {

    margin-top: 35px;

    padding-top: 18px;

    border-top: 1px solid #ddd5ca;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

}


.login-security span {

    font-size: 12px;

}


.login-security p {

    color: #888;

    font-size: 10px;

    line-height: 1.3;

    text-align: left;

}



/* =========================================================
   ANIMACIÓN
========================================================= */

.login-brand-content {

    animation:
        loginBrandIn .8s ease both;

}


.login-form-container {

    animation:
        loginFormIn .7s .1s ease both;

}


@keyframes loginBrandIn {

    from {

        opacity: 0;

        transform: translateX(-25px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}


@keyframes loginFormIn {

    from {

        opacity: 0;

        transform: translateX(20px);

    }

    to {

        opacity: 1;

        transform: translateX(0);

    }

}



/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .login-page {

        grid-template-columns: 40% 60%;

    }


    .login-brand-content {

        width: 80%;

    }


    .login-brand-logo img {

        width: 190px;

    }


    .login-brand-content h1 {

        font-size: 46px;

    }


    .login-form-section {

        padding: 40px 30px;

    }

}



/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .login-page {

        display: block;

        min-height: 100vh;

    }


    /* =====================================================
       OCULTAMOS PANEL DE MARCA
    ===================================================== */

    .login-brand {

        display: none;

    }


    /* =====================================================
       FORMULARIO
    ===================================================== */

    .login-form-section {

        width: 100%;

        min-height: 100vh;

        padding:
            30px
            22px
            40px;

        display: flex;

        align-items: flex-start;

        justify-content: center;

    }


    .login-form-container {

        max-width: 430px;

        padding-top: 5px;

    }


    /* =====================================================
       VOLVER
    ===================================================== */

    .login-back {

        margin-bottom: 45px;

        font-size: 12px;

    }


    /* =====================================================
       ENCABEZADO
    ===================================================== */

    .login-heading {

        margin-bottom: 25px;

        text-align: center;

    }


    .login-eyebrow {

        font-size: 14px;

    }


    .login-heading h2 {

        font-size: 38px;

        letter-spacing: -1.2px;

    }


    .login-heading p {

        max-width: 300px;

        margin: 0 auto;

        font-size: 13px;

    }


    /* =====================================================
       GOOGLE
    ===================================================== */

    .login-google {

        height: 50px;

        padding: 0 14px;

        font-size: 13px;

    }


    .google-icon {

        width: 20px;

        height: 20px;

        min-width: 20px;

        max-width: 20px;

        flex-basis: 20px;

    }


    /* =====================================================
       CAMPOS
    ===================================================== */

    .login-form {

        gap: 18px;

    }


    .login-field label {

        font-size: 12px;

    }


    .login-field input {

        height: 50px;

        font-size: 13px;

    }


    /* =====================================================
       BOTÓN
    ===================================================== */

    .login-submit {

        height: 50px;

        font-size: 13px;

    }


    /* =====================================================
       REGISTRO
    ===================================================== */

    .login-register {

        margin-top: 25px;

    }


    /* =====================================================
       SEGURIDAD
    ===================================================== */

    .login-security {

        margin-top: 30px;

    }

}



/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 380px) {

    .login-form-section {

        padding-left: 18px;

        padding-right: 18px;

    }


    .login-back {

        margin-bottom: 35px;

    }


    .login-heading h2 {

        font-size: 34px;

    }


    .login-heading p {

        font-size: 12px;

    }


    .login-password-label a {

        font-size: 10px;

    }


    .login-security p {

        font-size: 9px;

    }


    .google-icon {

        width: 19px;

        height: 19px;

        min-width: 19px;

        max-width: 19px;

        flex-basis: 19px;

    }

}