﻿/* ==========================================================
   MOVITICKET LOGIN
   ========================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient( 120deg, #1e3c72 0%, #245091 50%, #2a5298 100% );
    overflow: hidden;
}


/* ==========================================================
   LAYOUT
   ========================================================== */

.login-layout {
    width: 100%;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* ==========================================================
   FONDO DE RUTAS
   ========================================================== */

.route-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}


/* ==========================================================
   RUTAS
   ========================================================== */

.route {
    position: absolute;
    height: 1px;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,.28), transparent );
    transform-origin: left center;
    opacity: .7;
}


    .route::after {
        content: "";
        position: absolute;
        left: 0;
        top: -1px;
        width: 90px;
        height: 3px;
        border-radius: 50%;
        background: linear-gradient( 90deg, transparent, rgba(255,255,255,.8), transparent );
        animation: routeTravel 5s linear infinite;
    }


.route-1 {
    width: 600px;
    left: -80px;
    top: 22%;
    transform: rotate(18deg);
}


.route-2 {
    width: 700px;
    right: -150px;
    top: 31%;
    transform: rotate(-23deg);
}


.route-3 {
    width: 550px;
    left: -100px;
    bottom: 24%;
    transform: rotate(-15deg);
}


.route-4 {
    width: 600px;
    right: -120px;
    bottom: 18%;
    transform: rotate(20deg);
}


@keyframes routeTravel {

    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateX(600px);
        opacity: 0;
    }
}


/* ==========================================================
   NODOS
   ========================================================== */

.route-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    box-shadow: 0 0 0 4px rgba(255,255,255,.08), 0 0 14px rgba(255,255,255,.35);
    animation: nodePulse 3s ease-in-out infinite;
}


@keyframes nodePulse {

    0%, 100% {
        transform: scale(1);
        opacity: .55;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}


.node-1 {
    left: 9%;
    top: 20%;
}


.node-2 {
    left: 28%;
    top: 27%;
    animation-delay: .5s;
}


.node-3 {
    right: 12%;
    top: 29%;
    animation-delay: 1s;
}


.node-4 {
    left: 14%;
    bottom: 25%;
    animation-delay: 1.5s;
}


.node-5 {
    right: 27%;
    bottom: 31%;
    animation-delay: 2s;
}


.node-6 {
    right: 8%;
    bottom: 18%;
    animation-delay: 2.5s;
}


/* ==========================================================
   PUNTOS EN MOVIMIENTO
   ========================================================== */

.travel-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 12px rgba(255,255,255,.9);
    z-index: 2;
}


.dot-1 {
    top: 22%;
    left: 5%;
    animation: travelOne 8s linear infinite;
}


.dot-2 {
    bottom: 22%;
    right: 5%;
    animation: travelTwo 10s linear infinite;
}


@keyframes travelOne {

    0% {
        left: 5%;
        top: 22%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        left: 48%;
        top: 34%;
    }

    90% {
        left: 90%;
        top: 22%;
        opacity: 1;
    }

    100% {
        left: 95%;
        top: 20%;
        opacity: 0;
    }
}


@keyframes travelTwo {

    0% {
        right: 5%;
        bottom: 22%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    50% {
        right: 50%;
        bottom: 35%;
    }

    90% {
        right: 90%;
        bottom: 22%;
        opacity: 1;
    }

    100% {
        right: 95%;
        bottom: 20%;
        opacity: 0;
    }
}


/* ==========================================================
   LOGIN
   ========================================================== */

.login-page {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}


/* ==========================================================
   CARD
   ========================================================== */

.login-card {
    width: 100%;
    max-width: 400px;
    padding: 38px 38px 24px;
    background: rgba(255,255,255,.97);
    border-radius: 22px;
    box-shadow: 0 30px 70px rgba(0,0,0,.22), 0 8px 25px rgba(0,0,0,.10);
    border: 1px solid rgba(255,255,255,.8);
    animation: cardAppear .55s cubic-bezier(.22,.61,.36,1);
}


@keyframes cardAppear {

    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ==========================================================
   BRAND
   ========================================================== */

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 34px;
}


.brand-mark {
    width: 43px;
    height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 135deg, #1e3c72, #2a5298 );
    box-shadow: 0 7px 18px rgba(42,82,152,.25);
}


.brand-mark-inner {
    position: relative;
    width: 23px;
    height: 15px;
    border: 2px solid white;
    border-radius: 4px;
}


    .brand-mark-inner::before,
    .brand-mark-inner::after {
        content: "";
        position: absolute;
        bottom: -6px;
        width: 4px;
        height: 4px;
        background: white;
        border-radius: 50%;
    }


    .brand-mark-inner::before {
        left: 2px;
    }


    .brand-mark-inner::after {
        right: 2px;
    }


    .brand-mark-inner span {
        position: absolute;
        top: 3px;
        width: 5px;
        height: 4px;
        background: white;
        border-radius: 1px;
    }


        .brand-mark-inner span:first-child {
            left: 3px;
        }


        .brand-mark-inner span:last-child {
            right: 3px;
        }


.brand-name {
    color: #17243a;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -1px;
}


    .brand-name span {
        color: #2a5298;
    }


/* ==========================================================
   HEADING
   ========================================================== */

.login-heading {
    margin-bottom: 25px;
}


    .login-heading h1 {
        color: #172033;
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -.6px;
        margin-bottom: 7px;
    }


    .login-heading p {
        color: #7c8798;
        font-size: 13px;
        line-height: 1.5;
    }


/* ==========================================================
   INPUT
   ========================================================== */

.input-group {
    margin-bottom: 17px;
}


    .input-group label {
        display: block;
        margin-bottom: 7px;
        color: #394457;
        font-size: 12px;
        font-weight: 600;
    }


.input-box {
    width: 100%;
    height: 48px;
    position: relative;
}


    .input-box input,
    .input-box select {
        width: 100%;
        height: 48px;
        padding: 0 13px 0 43px;
        border: 1px solid #dfe4eb;
        border-radius: 10px;
        background: #f8f9fb;
        color: #202b3d;
        outline: none;
        font-family: inherit;
        font-size: 13px;
        transition: .2s ease;
    }


        .input-box input::placeholder {
            color: #a2aab7;
        }


        .input-box input:hover,
        .input-box select:hover {
            border-color: #c7cfdb;
        }


        .input-box input:focus,
        .input-box select:focus {
            background: white;
            border-color: #2a5298;
            box-shadow: 0 0 0 3px rgba(42,82,152,.09);
        }


/* ==========================================================
   ICONOS
   ========================================================== */

.input-symbol {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 17px;
    height: 17px;
    pointer-events: none;
    z-index: 2;
}


    .input-symbol svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: #8994a4;
        stroke-width: 1.7;
        stroke-linecap: round;
        stroke-linejoin: round;
    }


/* ==========================================================
   BOTÓN
   ========================================================== */

.login-button {
    width: 100%;
    height: 48px;
    margin-top: 5px;
    padding: 0 14px 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: none;
    border-radius: 10px;
    background: #1e3c72;
    color: white;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 7px 15px rgba(30,60,114,.20);
    transition: .2s ease;
}


    .login-button:hover {
        background: #244a8a;
        transform: translateY(-1px);
        box-shadow: 0 10px 20px rgba(30,60,114,.25);
    }


.arrow {
    width: 27px;
    height: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255,255,255,.13);
    font-size: 17px;
    transition: transform .2s ease;
}


.login-button:hover .arrow {
    transform: translateX(3px);
}


/* ==========================================================
   ERROR
   ========================================================== */

.error-message {
    margin-top: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ffdada;
    border-radius: 9px;
    background: #fff5f5;
    color: #c43e3e;
    font-size: 12px;
}


.error-dot {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #df4d4d;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.login-bottom {
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid #edf0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #a2aab6;
    font-size: 10px;
}


    .login-bottom span:first-child {
        color: #687589;
        font-weight: 600;
    }


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 480px) {

    body {
        overflow-y: auto;
    }

    .login-layout {
        min-height: 100dvh;
        height: auto;
        overflow-y: auto;
    }

    .login-page {
        min-height: 100dvh;
        height: auto;
        padding: 18px;
    }

    .login-card {
        max-width: 100%;
        padding: 30px 23px 21px;
        border-radius: 19px;
    }

    .brand {
        margin-bottom: 28px;
    }

    .brand-name {
        font-size: 23px;
    }

    .login-heading h1 {
        font-size: 22px;
    }

    .route-background {
        opacity: .65;
    }
}
