/* =====================================================
   LOGIN - VIAJO TRANSPORTES
===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    min-height: 100vh;

    font-family: 'Inter', Arial, Helvetica, sans-serif;

    background: #040038;

    color: #ffffff;

    overflow-x: hidden;
}


/* =====================================================
   VÍDEO
===================================================== */

.login-video {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: auto;

    object-fit: cover;

    z-index: -4;
}


/* Camada escura */

.video-overlay {
    position: fixed;

    inset: 0;

    background:
        rgba(2, 4, 30, 0.62);

    z-index: -3;
}


/* Gradiente */

.video-gradient {
    position: fixed;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 0, 56, 0.92) 0%,
            rgba(4, 0, 56, 0.72) 42%,
            rgba(4, 0, 56, 0.38) 68%,
            rgba(0, 0, 0, 0.20) 100%
        );

    z-index: -2;
}


/* =====================================================
   CONTAINER PRINCIPAL
===================================================== */

.login-page {
    width: 100%;
    max-width: 1250px;
    height: 100vh;
    margin: auto;
    padding: 40px 35px 60px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.2fr)
        minmax(360px, 470px);

    align-items: center;
    gap: 80px;
}


/* =====================================================
   LADO ESQUERDO
===================================================== */

.login-brand {
    max-width: 680px;
}


.brand-badge {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 8px 13px;

    margin-bottom: 22px;

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

    border-radius: 30px;

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

    backdrop-filter: blur(10px);

    font-size: 13px;

    color:
        rgba(255, 255, 255, 0.90);
}


.brand-badge i {
    color: #ff3d3d;
}


.login-brand h1 {
    max-width: 650px;

    font-size:
        clamp(42px, 5vw, 70px);

    line-height: 1.02;

    letter-spacing: -3px;

    margin-bottom: 22px;

    font-weight: 700;
}


.login-brand h1 span {
    display: block;

    color: #7da5ff;
}


.login-brand > p {
    max-width: 560px;

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

    font-size: 17px;

    line-height: 1.7;

    margin-bottom: 35px;
}


/* =====================================================
   BENEFÍCIOS
===================================================== */

.brand-features {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;
}


.feature {
    min-width: 175px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 13px 15px;

    border-radius: 12px;

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

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

    backdrop-filter: blur(12px);
}


.feature > i {
    width: 35px;
    height: 35px;

    display: flex;

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

    background:
        rgba(71, 104, 255, 0.22);

    border-radius: 9px;

    color: #b4c5ff;

    font-size: 14px;
}


.feature div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.feature strong {
    font-size: 13px;
}


.feature span {
    font-size: 10px;

    color:
        rgba(255, 255, 255, 0.55);
}


/* =====================================================
   CARD
===================================================== */

.login-card {
    width: 100%;

    padding: 35px 35px 25px;

    border-radius: 24px;

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

    color: #17172a;

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

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);
}

.cadastro-card {
	padding: 20px 20px 10px;
}

/* =====================================================
   LOGO
===================================================== */

.login-logo {
    display: flex;
    justify-content: center;
}


.login-logo img {
    width: 250px;

    max-width: 90%;

    height: auto;

    object-fit: contain;
    margin-bottom: 25px;

}
/* =====================================================
   TÍTULO
===================================================== */

.login-title {
    display: flex;

    align-items: center;

    gap: 14px;

    margin-bottom: 28px;
}


.welcome-line {
    display: block;

    width: 4px;
    height: 46px;

    border-radius: 5px;

    background:
        linear-gradient(
            to bottom,
            #0234a1,
            #5954ff
        );
}


.login-title h2 {
    font-size: 24px;

    margin-bottom: 4px;

    color: #16162d;
}


.login-title p {
    font-size: 13px;

    color: #848492;

    line-height: 1.5;
}


/* =====================================================
   ERRO
===================================================== */

.login-alert {
    display: flex;

    align-items: center;

    gap: 10px;

    background: #fff0f0;

    color: #b42318;

    border:
        1px solid #ffd0d0;

    padding: 11px 13px;

    border-radius: 10px;

    margin-bottom: 20px;

    font-size: 12px;
}


/* =====================================================
   FORMULÁRIO
===================================================== */

.login-form {
    display: flex;

    flex-direction: column;

    gap: 18px;
}


.login-field label {
    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 600;

    color: #454558;
}


.input-wrapper {
    position: relative;
}


.input-wrapper > i {
    position: absolute;

    left: 16px;

    top: 50%;

    transform: translateY(-50%);

    color: #9898a6;

    font-size: 14px;

    pointer-events: none;
}


.input-wrapper input {
    width: 100%;

    height: 54px;

    padding:
        0 48px;

    background: #f8f9fc;

    border:
        1px solid #dedfe7;

    border-radius: 11px;

    outline: none;

    font-family: inherit;

    font-size: 14px;

    color: #242437;

    transition:
        border-color .2s,
        box-shadow .2s,
        background .2s;
}


.input-wrapper input::placeholder {
    color: #aaaab6;
}


.input-wrapper input:focus {
    background: #ffffff;

    border-color: #4056c9;

    box-shadow:
        0 0 0 4px
        rgba(64, 86, 201, 0.10);
}


/* =====================================================
   MOSTRAR SENHA
===================================================== */

.show-password {
    position: absolute;

    right: 13px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    border: 0;

    background: transparent;

    color: #858595;

    border-radius: 8px;

    cursor: pointer;

    transition: .2s;
}


.show-password:hover {
    background: #eceef6;

    color: #2d388f;
}


/* =====================================================
   BOTÃO ENTRAR
===================================================== */

.btn-login {
    width: 100%;

    height: 55px;

    margin-top: 3px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            #040038,
            #0234a1
        );

    color: #ffffff;

    font-family: inherit;

    font-weight: 600;

    font-size: 14px;

    cursor: pointer;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    box-shadow:
        0 12px 25px
        rgba(2, 52, 161, 0.28);

    transition:
        transform .2s,
        box-shadow .2s;
}


.btn-login:hover {
    transform: translateY(-2px);

    box-shadow:
        0 17px 30px
        rgba(2, 52, 161, 0.36);
}


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


/* =====================================================
   CADASTRO
===================================================== */

.login-register {
    margin-top:12px;

    padding-top: 5px;

    border-top:
        1px solid #ececf1;

    text-align: center;

    font-size: 12px;

    color: #777786;
}


.login-register a {
    color: #0234a1;

    font-weight: 700;

    text-decoration: none;

    margin-left: 4px;
}


.login-register a:hover {
    text-decoration: underline;
}


/* =====================================================
   SEGURANÇA
===================================================== */

.login-security {
    margin-top: 16px;

    display: flex;

    justify-content: center;

    align-items: center;

    gap: 6px;

    color: #a0a0ab;

    font-size: 10px;
}


.login-security i {
    color: #35a76f;
}


/* =====================================================
   RODAPÉ
===================================================== */

.login-footer {
    position: fixed;
    bottom: 12px;
    left: 0;
    width: 100%;

    text-align: center;
    padding: 0 20px;

    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;

    z-index: 5;
}

/* =====================================================
   RESPONSIVO
===================================================== */

@media (max-width: 950px) {

    .login-page {
        grid-template-columns: 1fr;

        max-width: 520px;

        gap: 25px;

        padding-top: 35px;
    }


    .login-brand {
        text-align: center;
    }


    .brand-badge {
        margin-left: auto;
        margin-right: auto;
    }


    .login-brand h1 {
        font-size: 42px;

        letter-spacing: -2px;
    }


    .login-brand > p {
        margin-left: auto;
        margin-right: auto;

        font-size: 14px;
    }


    .brand-features {
        justify-content: center;
    }

}


@media (max-width: 600px) {

    body {
        background: #040038;
    }


.login-page {
    height: 100vh;
    padding: 20px 15px 50px;
}


    .login-brand {
        display: none;
    }


    .video-gradient {
        background:
            rgba(4, 0, 56, 0.60);
    }


    .login-card {
        padding:
            28px 22px 25px;

        border-radius: 20px;
    }


    .login-logo img {
        width: 210px;
    }


    .login-title h2 {
        font-size: 21px;
    }


    .input-wrapper input {
        height: 52px;
    }


    .btn-login {
        height: 52px;
    }

}


@media (prefers-reduced-motion: reduce) {

    .login-video {
        display: none;
    }

}