﻿/* =========================================================
   Pantalla de ingreso Transmagio
   Misma paleta que app-menu.css: azul marino #13294b -> #1b3a66,
   acento ámbar #f5a524. Colores literales (sin variables CSS).
   ========================================================= */

html,
body.tm-login {
    height: 100%;
}

body.tm-login {
    margin: 0;
    background-color: #f5f7fb;
    color: #1f2d3d;
    font-family: "Plus Jakarta Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

    body.tm-login h1,
    body.tm-login h2 {
        font-weight: 800;
        letter-spacing: -.02em;
    }

    body.tm-login .btn,
    body.tm-login button,
    body.tm-login .form-control {
        font-family: inherit;
    }

.tm-login-wrap {
    display: flex;
    min-height: 100vh;
}

/* ---------- Panel de marca (izquierda) ---------- */
.tm-login-hero {
    position: relative;
    flex: 1 1 55%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem 3rem;
    color: #e8eef7;
    background: linear-gradient(135deg, rgba(19, 41, 75, .94) 0%, rgba(27, 58, 102, .86) 100%), url("../Images/camiones.jpg") center / cover no-repeat;
    overflow: hidden;
}

    .tm-login-hero::after {
        content: "";
        position: absolute;
        right: -120px;
        bottom: -120px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        border: 48px solid rgba(245, 165, 36, .12);
        pointer-events: none;
    }

.tm-login-brand {
    display: flex;
    align-items: center;
    gap: .7rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .3px;
}

.tm-login-brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #f5a524;
    color: #13294b;
    font-size: 1.25rem;
}

.tm-login-hero-body {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

    .tm-login-hero-body h2 {
        font-size: 2.1rem;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        margin-bottom: 1rem;
    }

        .tm-login-hero-body h2 span {
            color: #f5a524;
        }

    .tm-login-hero-body p {
        color: #c3d0e3;
        font-size: 1.02rem;
        margin-bottom: 1.75rem;
    }

.tm-login-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .tm-login-features li {
        display: flex;
        align-items: center;
        gap: .75rem;
        margin-bottom: .8rem;
        color: #e8eef7;
    }

        .tm-login-features li i {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: 8px;
            background: rgba(255, 255, 255, .1);
            color: #f5a524;
        }

.tm-login-hero-foot {
    position: relative;
    z-index: 1;
    color: #9fb2cc;
    font-size: .85rem;
}

/* ---------- Panel de formulario (derecha) ---------- */
.tm-login-panel {
    flex: 1 1 45%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.tm-login-card {
    width: 100%;
    max-width: 400px;
}

    .tm-login-card h1 {
        font-size: 1.75rem;
        font-weight: 700;
        color: #13294b;
        margin-bottom: .35rem;
    }

.tm-login-sub {
    color: #6b7a90;
    margin-bottom: 2rem;
}

.tm-login-card label {
    font-size: .85rem;
    font-weight: 600;
    color: #33445c;
    margin-bottom: .4rem;
}

.tm-input {
    position: relative;
    margin-bottom: 1.25rem;
}

    .tm-input > i {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        color: #8a9ab0;
        pointer-events: none;
        transition: color .15s ease;
    }

    .tm-input .form-control {
        height: 50px;
        padding-left: 2.75rem;
        padding-right: 2.75rem;
        border: 1px solid #d6dee9;
        border-radius: 10px;
        background-color: #fff;
        font-size: 1rem;
        max-width: none;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .tm-input .form-control:focus {
            border-color: #1b3a66;
            box-shadow: 0 0 0 .2rem rgba(27, 58, 102, .15);
        }

    .tm-input:focus-within > i {
        color: #1b3a66;
    }

.tm-toggle-pass {
    position: absolute;
    right: .5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8a9ab0;
    cursor: pointer;
}

    .tm-toggle-pass:hover,
    .tm-toggle-pass:focus {
        color: #1b3a66;
        background: #f1f5fb;
        outline: none;
    }

.tm-login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: .9rem;
}

    .tm-login-options .custom-control-label {
        font-weight: 400;
        color: #52627a;
        font-size: .9rem;
    }

    .tm-login-options .custom-control-input:checked ~ .custom-control-label::before {
        background-color: #1b3a66;
        border-color: #1b3a66;
    }

.tm-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(90deg, #13294b 0%, #1b3a66 100%);
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: .3px;
    box-shadow: 0 8px 20px rgba(19, 41, 75, .25);
    transition: transform .15s ease, box-shadow .15s ease;
}

    .tm-btn-login:hover,
    .tm-btn-login:focus {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(19, 41, 75, .3);
        outline: none;
    }

    .tm-btn-login i {
        color: #f5a524;
    }

.tm-login-card .alert {
    border-radius: 10px;
    font-size: .92rem;
    text-align: left;
}

.tm-login-foot {
    margin-top: 2.5rem;
    color: #8a9ab0;
    font-size: .82rem;
    text-align: center;
}

/* Marca centrada: sólo visible en móvil (conductores) */
.tm-login-mobile-brand {
    display: none;
}

/* ---------- Móvil / tablet: versión minimalista ---------- */
@media (max-width: 991.98px) {
    body.tm-login {
        background-color: #ffffff;
    }

    .tm-login-hero {
        display: none;
    }

    .tm-login-panel {
        align-items: center;
        padding: 2rem 1.5rem;
    }

    .tm-login-card {
        max-width: 360px;
    }

    .tm-login-mobile-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 2.25rem;
        color: #13294b;
        font-weight: 700;
        font-size: 1.2rem;
        letter-spacing: .3px;
    }

        .tm-login-mobile-brand .tm-login-brand-icon {
            width: 60px;
            height: 60px;
            margin-bottom: .75rem;
            border-radius: 16px;
            background: linear-gradient(135deg, #13294b 0%, #1b3a66 100%);
            color: #f5a524;
            font-size: 1.6rem;
            box-shadow: 0 8px 20px rgba(19, 41, 75, .2);
        }

    /* Menos texto: sin saludo ni subtítulo */
    .tm-login-card h1,
    .tm-login-sub {
        display: none;
    }

    /* Etiquetas ocultas a la vista (quedan los placeholders), visibles para lectores de pantalla */
    .tm-login-card label:not(.custom-control-label) {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .tm-input {
        margin-bottom: .9rem;
    }

        .tm-input .form-control {
            height: 54px;
            border-color: #e3e8ef;
            background-color: #f7f9fc;
        }

            .tm-input .form-control:focus {
                background-color: #ffffff;
            }

    .tm-login-options {
        margin: 1rem 0 1.25rem;
    }

    .tm-btn-login {
        height: 54px;
        box-shadow: none;
    }

    .tm-login-foot {
        margin-top: 2rem;
    }
}
