/* =========================================================
   VEICLOUD WEB
   Pantalla de inicio de sesión
   ========================================================= */

.login-page {
    min-height: 100vh;
    background: #050505;
}

.login-main {
    min-height: 100vh;
}

.login-hero {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 100vh;

    padding:
        110px
        24px
        48px;

    overflow: hidden;

    background: #050505;
}

/* =========================================================
   BARRA SUPERIOR
   ========================================================= */

.login-topbar {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;

    padding:
        28px
        5vw;
}

.login-brand {
    color: #e50914;

    font-size: 30px;
    font-weight: 900;
    letter-spacing: -1.4px;

    transition:
        opacity 180ms ease;
}

.login-brand:hover {
    opacity: 0.82;
}

.login-back-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        11px
        17px;

    border:
        1px solid rgba(255, 255, 255, 0.14);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.07);

    color:
        #ffffff;

    font-size:
        13px;

    font-weight:
        700;

    backdrop-filter:
        blur(12px);

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.login-back-button:hover {
    border-color:
        rgba(255, 255, 255, 0.26);

    background:
        rgba(255, 255, 255, 0.13);

    transform:
        translateY(-2px);
}

/* =========================================================
   CONTENIDO CENTRAL
   ========================================================= */

.login-content {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
}

.login-card {
    width: min(
        100%,
        470px
    );

    padding:
        34px;

    border:
        1px solid rgba(255, 255, 255, 0.11);

    border-radius:
        26px;

    background:
        linear-gradient(
            145deg,
            rgba(20, 20, 24, 0.92),
            rgba(11, 11, 14, 0.86)
        );

    box-shadow:
        0 32px 90px rgba(0, 0, 0, 0.52);

    backdrop-filter:
        blur(22px);
}

.login-label {
    margin-bottom:
        12px;

    color:
        #ff5b63;

    font-size:
        11px;

    font-weight:
        800;

    letter-spacing:
        2.4px;
}

.login-card h1 {
    color:
        #ffffff;

    font-size:
        43px;

    font-weight:
        900;

    letter-spacing:
        -2.2px;

    line-height:
        1;
}

.login-description {
    margin-top:
        15px;

    color:
        rgba(255, 255, 255, 0.64);

    font-size:
        15px;

    line-height:
        1.65;
}

/* =========================================================
   FORMULARIO
   ========================================================= */

.login-form {
    display:
        flex;

    flex-direction:
        column;

    gap:
        18px;

    margin-top:
        28px;
}

.login-field {
    display:
        flex;

    flex-direction:
        column;

    gap:
        8px;
}

.login-field span {
    color:
        rgba(255, 255, 255, 0.72);

    font-size:
        13px;

    font-weight:
        700;
}

.login-field input {
    width:
        100%;

    height:
        54px;

    padding:
        0
        15px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        14px;

    outline:
        none;

    background:
        rgba(255, 255, 255, 0.055);

    color:
        #ffffff;

    font-family:
        inherit;

    font-size:
        15px;

    transition:
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.login-field input::placeholder {
    color:
        rgba(255, 255, 255, 0.34);
}

.login-field input:focus {
    border-color:
        rgba(229, 9, 20, 0.82);

    background:
        rgba(255, 255, 255, 0.085);

    box-shadow:
        0 0 0 4px rgba(229, 9, 20, 0.12);
}

/* =========================================================
   CONTRASEÑA
   ========================================================= */

.password-wrapper {
    position:
        relative;
}

.password-wrapper input {
    padding-right:
        66px;
}

.password-toggle {
    position:
        absolute;

    top:
        50%;

    right:
        12px;

    padding:
        8px;

    border:
        none;

    outline:
        none;

    background:
        transparent;

    color:
        rgba(255, 255, 255, 0.70);

    cursor:
        pointer;

    font-family:
        inherit;

    font-size:
        12px;

    font-weight:
        800;

    transition:
        color 180ms ease;
}

.password-toggle:hover {
    color:
        #ffffff;
}

/* =========================================================
   MENSAJES
   ========================================================= */

.login-message {
    display:
        none;

    min-height:
        0;

    color:
        #ff737a;

    font-size:
        13px;

    font-weight:
        600;

    line-height:
        1.45;
}

.login-message.visible {
    display:
        block;

    min-height:
        18px;
}

.login-message.success {
    color:
        #6fdb9b;
}

/* =========================================================
   BOTONES
   ========================================================= */

.login-submit-button {
    width:
        100%;

    min-height:
        56px;

    border:
        none;

    border-radius:
        999px;

    background:
        #e50914;

    color:
        #ffffff;

    cursor:
        pointer;

    font-family:
        inherit;

    font-size:
        16px;

    font-weight:
        900;

    box-shadow:
        0 14px 34px rgba(229, 9, 20, 0.30);

    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.login-submit-button:hover {
    background:
        #ff1723;

    box-shadow:
        0 18px 40px rgba(229, 9, 20, 0.42);

    transform:
        translateY(-2px);
}

.login-submit-button:active {
    transform:
        translateY(0);
}

.login-submit-button:disabled {
    cursor:
        wait;

    opacity:
        0.70;

    transform:
        none;
}

/* =========================================================
   DIVISOR
   ========================================================= */

.login-divider {
    display:
        grid;

    grid-template-columns:
        1fr
        auto
        1fr;

    align-items:
        center;

    gap:
        12px;

    margin:
        24px
        0
        16px;
}

.login-divider span {
    height:
        1px;

    background:
        rgba(255, 255, 255, 0.10);
}

.login-divider p {
    color:
        rgba(255, 255, 255, 0.48);

    font-size:
        12px;

    font-weight:
        600;

    text-align:
        center;
}

/* =========================================================
   BOTÓN DE PLANES
   ========================================================= */

.login-register-button {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        100%;

    min-height:
        54px;

    border:
        1px solid rgba(255, 255, 255, 0.12);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.06);

    color:
        #ffffff;

    font-size:
        15px;

    font-weight:
        800;

    transition:
        background 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.login-register-button:hover {
    border-color:
        rgba(255, 255, 255, 0.22);

    background:
        rgba(255, 255, 255, 0.12);

    transform:
        translateY(-2px);
}

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

@media (max-width: 900px) {

    .login-hero {
        padding-top:
            104px;
    }

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

/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    .login-hero {
        align-items:
            flex-end;

        min-height:
            100svh;

        padding:
            98px
            18px
            24px;
    }

    .login-topbar {
        padding:
            23px
            20px;
    }

    .login-brand {
        font-size:
            27px;
    }

    .login-back-button {
        padding:
            10px
            13px;

        font-size:
            12px;
    }

    .login-card {
        width:
            100%;

        padding:
            25px
            20px
            20px;

        border-radius:
            24px;

        background:
            linear-gradient(
                145deg,
                rgba(16, 16, 20, 0.96),
                rgba(9, 9, 12, 0.94)
            );

        box-shadow:
            0 24px 70px rgba(0, 0, 0, 0.58);
    }

    .login-card h1 {
        font-size:
            37px;

        letter-spacing:
            -1.8px;
    }

    .login-description {
        font-size:
            14px;

        line-height:
            1.56;
    }

    .login-form {
        gap:
            16px;

        margin-top:
            23px;
    }

    .login-field input {
        height:
            52px;

        border-radius:
            13px;

        font-size:
            14px;
    }

    .login-submit-button {
        min-height:
            54px;

        font-size:
            15px;
    }

    .login-register-button {
        min-height:
            52px;

        font-size:
            14px;
    }

    .login-divider {
        margin:
            20px
            0
            14px;
    }
}

/* =========================================================
   MÓVILES PEQUEÑOS
   ========================================================= */

@media (max-width: 370px) {

    .login-brand {
        font-size:
            24px;
    }

    .login-back-button {
        padding:
            9px
            11px;

        font-size:
            11px;
    }

    .login-card {
        padding:
            21px
            17px
            17px;
    }

    .login-card h1 {
        font-size:
            33px;
    }

    .login-description {
        font-size:
            13px;
    }
}
