﻿/* ============================================================
   estilosLogin.css  —  TLB Transportes · Iniciar Sesión
   Bootstrap 5 + Font Awesome  —  layout dos paneles
   ============================================================ */

/* ── Variables (misma paleta que registro) ── */
:root {
    --tlb-navy: #1B2A6B;
    --tlb-navy-dark: #111d50;
    --tlb-navy-deep: #0c1438;
    --tlb-lime: #C5D400;
    --tlb-lime-dark: #a8b400;
    --tlb-border: rgba(255, 255, 255, 0.15);
    --tlb-input-bg: rgba(255, 255, 255, 0.08);
    --tlb-card-bg: rgba(255, 255, 255, 0.07);
    --tlb-gray: #b0b8d0;
}

/* ── Fondo global ── */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: linear-gradient(135deg, var(--tlb-navy-deep) 0%, var(--tlb-navy) 55%, #243580 100%) !important;
    background-attachment: fixed !important;
}

    body > .container,
    body > .container-fluid,
    main, .pb-3 {
        background: transparent !important;
    }

/* ============================================================
   PÁGINA DE LOGIN
   ============================================================ */
.tlb-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
}

/* ============================================================
   TARJETA PRINCIPAL — dos paneles
   ============================================================ */
.login-card {
    position: relative;
    width: 100%;
    max-width: 900px;
    min-height: 480px;
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 60px rgba(0,0,0,0.35);
    border: 1px solid var(--tlb-border);
}

/* ============================================================
   PANEL IZQUIERDO — marca / presentación
   ============================================================ */
.login-left {
    flex: 1.1;
    background: linear-gradient(160deg, var(--tlb-navy-deep) 0%, #1a2d80 100%);
    border-right: 1px solid var(--tlb-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 44px;
    position: relative;
    overflow: hidden;
}

    /* Círculos de fondo decorativos */
    .login-left::before {
        content: '';
        position: absolute;
        width: 320px;
        height: 320px;
        border-radius: 50%;
        border: 1px solid rgba(197,212,0,0.08);
        top: -80px;
        left: -80px;
    }

    .login-left::after {
        content: '';
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        border: 1px solid rgba(197,212,0,0.06);
        bottom: -60px;
        right: -60px;
    }

/* Logo en panel izquierdo */
.left-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.left-brand-star {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
}

.left-brand-name {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    line-height: 1;
    margin: 0;
}

    .left-brand-name .lime {
        color: var(--tlb-lime);
    }

/* Línea divisora */
.left-divider {
    width: 40px;
    height: 3px;
    background: var(--tlb-lime);
    border-radius: 2px;
    margin-bottom: 28px;
}

/* Texto descriptivo */
.left-headline {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 14px;
}

.left-desc {
    font-size: 13px;
    color: var(--tlb-gray);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 280px;
}

/* Botones de acción secundaria en el panel izquierdo */
.left-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-left-outline {
    padding: 9px 22px;
    border: 1.5px solid var(--tlb-border);
    border-radius: 8px;
    color: var(--tlb-gray);
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    text-decoration: none;
    transition: border-color .2s, color .2s, background .2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .btn-left-outline:hover {
        border-color: rgba(197,212,0,0.45);
        color: #ffffff;
        background: rgba(197,212,0,0.06);
    }

    .btn-left-outline.active {
        border-color: var(--tlb-lime);
        color: var(--tlb-lime);
    }

/* ============================================================
   PANEL DERECHO — formulario
   ============================================================ */
.login-right {
    flex: 0.9;
    background: var(--tlb-card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
}

/* Títulos del formulario */
.form-heading {
    font-size: 21px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.form-sub {
    font-size: 13px;
    color: var(--tlb-gray);
    margin-bottom: 28px;
    font-weight: 400;
}

/* ── Labels ── */
.tlb-label {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--tlb-gray);
    margin-bottom: 6px;
    display: block;
}

/* ── Input group ── */
.tlb-input-group .input-group-text {
    background: var(--tlb-input-bg);
    border: 1.5px solid var(--tlb-border);
    border-right: none;
    color: var(--tlb-gray);
    font-size: 14px;
    border-radius: 8px 0 0 8px;
    padding: 0 14px;
    transition: border-color .2s, color .2s;
}

.tlb-input-group .form-control {
    background: var(--tlb-input-bg);
    border: 1.5px solid var(--tlb-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: #ffffff;
    font-size: 14px;
    padding: 12px 14px;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

    .tlb-input-group .form-control::placeholder {
        color: rgba(176,184,208,0.45);
        font-size: 13px;
    }

    .tlb-input-group .form-control:focus {
        background: rgba(197,212,0,0.06);
        border-color: var(--tlb-lime);
        box-shadow: 0 0 0 3px rgba(197,212,0,0.12);
        color: #ffffff;
        outline: none;
    }

.tlb-input-group:focus-within .input-group-text {
    border-color: var(--tlb-lime);
    color: var(--tlb-lime);
}

/* Botón ojo */
.tlb-input-group .btn-eye {
    background: var(--tlb-input-bg);
    border: 1.5px solid var(--tlb-border);
    border-left: none;
    border-radius: 0 8px 8px 0;
    color: var(--tlb-gray);
    font-size: 13px;
    padding: 0 14px;
    transition: color .2s, border-color .2s;
    cursor: pointer;
}

    .tlb-input-group .btn-eye:hover,
    .tlb-input-group:focus-within .btn-eye {
        color: var(--tlb-lime);
        border-color: var(--tlb-lime);
    }

.tlb-input-group.has-eye .form-control {
    border-radius: 0;
    border-right: none;
}

/* ── Olvidé contraseña ── */
.forgot-link {
    font-size: 12px;
    color: var(--tlb-gray);
    text-decoration: none;
    display: block;
    text-align: right;
    margin-top: 6px;
    transition: color .2s;
}

    .forgot-link:hover {
        color: var(--tlb-lime);
    }

/* ── Botón principal ── */
.btn-tlb-primary {
    background-color: var(--tlb-lime);
    color: var(--tlb-navy-deep);
    border: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 13px;
    border-radius: 8px;
    width: 100%;
    transition: background-color .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 14px rgba(197,212,0,0.22);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

    .btn-tlb-primary:hover {
        background-color: var(--tlb-lime-dark);
        color: var(--tlb-navy-deep);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(197,212,0,0.30);
    }

    .btn-tlb-primary:active {
        transform: translateY(0);
    }

    .card-footer-link a {
        color: var(--tlb-lime);
        text-decoration: none;
        font-weight: 600;
    }

        .card-footer-link a:hover {
            text-decoration: underline;
            color: var(--tlb-lime-dark);
        }

/* ============================================================
   RESPONSIVE — apila paneles en móvil
   ============================================================ */
@media (max-width: 700px) {
    .login-card {
        flex-direction: column;
        max-width: 460px;
    }

    .login-left {
        padding: 36px 28px 28px;
        border-right: none;
        border-bottom: 1px solid var(--tlb-border);
    }

    .left-desc {
        max-width: 100%;
    }

    .login-right {
        padding: 32px 28px 36px;
    }
}


/* Estilos del Contenedor de WhatsApp */
.whatsapp-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000; /* Asegurar que esté por encima de todo */
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Alinear opciones a la derecha */
}

/* Estilos del Gran Botón Circular */
.whatsapp-float {
    background-color: #25D366; /* Verde vibrante sólido */
    color: white;
    border-radius: 50%;
    width: 70px; /* Tamaño mucho más grande */
    height: 70px; /* Tamaño mucho más grande */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* Icono más grande */
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

    /* Efecto hover en el gran botón */
    .whatsapp-float:hover {
        background-color: #128C7E;
        transform: scale(1.1);
        color: floralwhite;
    }

/* Estilos del Menú Desplegable */
.whatsapp-menu {
    display: none; /* Oculto por defecto */
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
}

/* Mostrar menú al pasar el ratón por el contenedor */
.whatsapp-container:hover .whatsapp-menu {
    display: flex;
}

/* Estilos de las Opciones del Menú (Botones Profesionales) */
.wa-option {
    background: #1e2a45; /* Fondo oscuro acorde a tu panel TLB */
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 1px solid #C5D400; /* Borde amarillo-lima brillante */
    transition: all 0.3s ease;
    white-space: nowrap; /* Evitar que el texto se parta */
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre icono y texto */
}

    /* Efecto hover en las opciones */
    .wa-option:hover {
        background-color: #C5D400;
        color: #1e2a45;
    }
