@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');


:root {
    --blue: #159ff2;
    --blue-dark: #087fc5;
    --blue-light: #eaf7ff;

    --navy: #071b2b;
    --navy-light: #102b3f;

    --text: #10202d;
    --gray: #6b7882;

    --border: #dfe8ee;

    --white: #ffffff;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Inter', sans-serif;

    background: white;
    color: var(--text);
}


a {
    text-decoration: none;
}


button,
input {
    font-family: inherit;
}


/* =========================================================
   ESTRUCTURA
========================================================= */

.login-page {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(420px, 47%)
        1fr;
}


/* =========================================================
   PANEL IZQUIERDO
========================================================= */

.login-brand {
    position: relative;

    min-height: 100vh;

    padding: 55px 65px;

    overflow: hidden;

    display: flex;
    flex-direction: column;

    background:
        radial-gradient(
            circle at 80% 20%,
            rgba(21, 159, 242, .24),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #061725,
            #08263c
        );

    color: white;
}


.login-brand::before {
    content: "";

    position: absolute;

    width: 450px;
    height: 450px;

    border: 1px solid rgba(82, 193, 255, .12);

    border-radius: 50%;

    right: -220px;
    bottom: -130px;
}


.login-brand::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    border: 1px solid rgba(82, 193, 255, .08);

    border-radius: 50%;

    right: -100px;
    bottom: -40px;
}


.login-brand-content {
    position: relative;

    z-index: 2;

    flex: 1;

    display: flex;
    flex-direction: column;
}


.login-logo img {
    width: auto;
    height: 55px;

    max-width: 230px;

    object-fit: contain;
}


.login-message {
    margin-top: auto;
    margin-bottom: 50px;

    max-width: 560px;
}


.login-tag {
    display: block;

    color: #52c1ff;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 2.5px;

    margin-bottom: 18px;
}


.login-message h1 {
    font-size: clamp(38px, 4vw, 58px);

    line-height: 1.05;

    letter-spacing: -2.5px;

    margin-bottom: 22px;
}


.login-message h1 span {
    color: #42b9ff;
}


.login-message p {
    max-width: 500px;

    color: #aabcc9;

    font-size: 15px;

    line-height: 1.8;
}


/* BENEFICIOS */

.login-benefits {
    display: flex;
    gap: 40px;

    margin-bottom: 40px;
}


.login-benefit {
    display: flex;
    align-items: center;

    gap: 12px;
}


.benefit-check {
    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(21, 159, 242, .13);

    border: 1px solid rgba(82, 193, 255, .25);

    color: #52c1ff;

    font-weight: 700;
}


.login-benefit div {
    display: flex;
    flex-direction: column;
}


.login-benefit strong {
    font-size: 12px;
}


.login-benefit small {
    color: #8196a5;

    font-size: 10px;

    margin-top: 2px;
}


.login-brand-footer {
    position: relative;

    z-index: 2;

    color: #647d8f;

    font-size: 10px;
}


/* =========================================================
   PARTE DERECHA
========================================================= */

.login-area {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 80px 50px;

    background:
        radial-gradient(
            circle at 100% 0,
            #edf9ff,
            transparent 30%
        ),
        #ffffff;
}


.back-home {
    position: absolute;

    top: 35px;
    right: 45px;

    color: #72808a;

    font-size: 12px;
    font-weight: 600;

    transition: color .2s ease;
}


.back-home:hover {
    color: var(--blue);
}


.login-container {
    width: 100%;
    max-width: 440px;
}


.login-heading {
    margin-bottom: 35px;
}


.login-heading > span {
    color: var(--blue);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;
}


.login-heading h2 {
    font-size: 38px;

    letter-spacing: -1.5px;

    margin: 5px 0 6px;
}


.login-heading p {
    color: var(--gray);

    font-size: 13px;
}


/* =========================================================
   CAMPOS
========================================================= */

.login-field {
    margin-bottom: 21px;
}


.login-field > label,
.password-label label {
    display: block;

    color: #293945;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 8px;
}


.password-label {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}


.password-label label {
    margin: 0;
}


.password-label a {
    color: var(--blue);

    font-size: 10px;
    font-weight: 600;
}


.input-wrapper {
    position: relative;
}


.input-wrapper input {
    width: 100%;

    height: 52px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background: white;

    padding:
        0 48px
        0 46px;

    color: var(--text);

    font-size: 13px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.input-wrapper input::placeholder {
    color: #a9b3ba;
}


.input-wrapper input:focus {
    border-color: var(--blue);

    box-shadow:
        0 0 0 4px rgba(21, 159, 242, .10);
}


/* ICONOS */

.input-icon {
    position: absolute;

    left: 16px;
    top: 50%;

    transform: translateY(-50%);

    display: flex;

    z-index: 2;
}


.input-icon svg {
    width: 18px;
    height: 18px;

    fill: #92a2ad;
}


.input-wrapper:focus-within .input-icon svg {
    fill: var(--blue);
}


/* MOSTRAR CONTRASEÑA */

.password-toggle {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    border: none;

    background: transparent;

    cursor: pointer;

    display: flex;

    padding: 5px;
}


.password-toggle svg {
    width: 19px;
    height: 19px;

    fill: #92a2ad;

    transition: fill .2s ease;
}


.password-toggle:hover svg,
.password-toggle.active svg {
    fill: var(--blue);
}


/* RECORDAR */

.remember {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: var(--gray);

    font-size: 11px;

    margin-bottom: 23px;

    cursor: pointer;
}


.remember input {
    accent-color: var(--blue);
}


/* BOTÓN */

.login-button {
    width: 100%;

    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 9px;

    background: var(--blue);

    color: white;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(21, 159, 242, .20);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}


.login-button span {
    font-size: 18px;

    transition: transform .2s ease;
}


.login-button:hover {
    background: var(--blue-dark);

    transform: translateY(-2px);

    box-shadow:
        0 14px 30px rgba(21, 159, 242, .27);
}


.login-button:hover span {
    transform: translateX(4px);
}


/* =========================================================
   SOPORTE
========================================================= */

.login-help {
    display: flex;
    justify-content: center;

    gap: 5px;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid var(--border);

    font-size: 10px;
}


.login-help span {
    color: #89969f;
}


.login-help a {
    color: var(--blue);

    font-weight: 700;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .login-page {
        grid-template-columns: 1fr;
    }


    .login-brand {
        min-height: auto;

        padding: 35px 8% 45px;
    }


    .login-message {
        margin-top: 65px;
        margin-bottom: 35px;
    }


    .login-message h1 {
        max-width: 600px;
    }


    .login-brand-footer {
        display: none;
    }


    .login-area {
        min-height: auto;

        padding:
            100px
            8%
            70px;
    }


    .back-home {
        top: 35px;
        right: 8%;
    }

}


@media (max-width: 550px) {

    .login-brand {
        padding:
            30px
            6%
            40px;
    }


    .login-logo img {
        height: 45px;
    }


    .login-message {
        margin-top: 50px;
    }


    .login-message h1 {
        font-size: 37px;
    }


    .login-benefits {
        flex-direction: column;

        gap: 15px;
    }


    .login-area {
        padding:
            90px
            6%
            60px;
    }


    .back-home {
        right: 6%;
    }


    .login-heading h2 {
        font-size: 32px;
    }

}

.login-error {
    margin-bottom: 22px;
    padding: 13px 15px;

    border: 1px solid #ffd1d1;
    border-radius: 10px;

    background: #fff2f2;

    color: #c62828;

    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}