﻿/* ============================================================
   estilosRegistro.css  —  TLB Transportes · Registro de usuario
   ============================================================ */

body {
    margin: 0 !important;
    padding: 0 !important;
    background-color: var(--navy-deep) !important;
    background: radial-gradient(ellipse 60% 50% at 80% 20%, rgba(197, 212, 0, 0.12) 0%, transparent 70%), 
                radial-gradient(ellipse 40% 40% at 10% 80%, rgba(197, 212, 0, 0.08) 0%, transparent 60%),
                linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, #243580 100%);
}

/* ── Reset básico ── */
    *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── Variables de color (paleta TLB) ── */
:root {
    --navy:       #1B2A6B;
    --navy-dark:  #111d50;
    --navy-deep:  #0c1438;
    --lime:       #C5D400;
    --lime-soft:  #d4e200;
    --white:      #ffffff;
    --gray-light: #f0f2f8;
    --gray-mid:   #b0b8d0;
    --card-bg:    rgba(255, 255, 255, 0.07);
    --border:     rgba(255, 255, 255, 0.15);
    --input-bg:   rgba(255, 255, 255, 0.10);
}

/* ============================================================
   PÁGINA / FONDO
   ============================================================ */
.tlb-register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    position: relative;
    overflow: hidden;
    font-family: 'Barlow', sans-serif;
}

/* Acentos de luz verde sobre el fondo */
    .tlb-register-page::before {
        content: '';
        position: absolute;
        inset: 0;
        pointer-events: none;
    }

/* ============================================================
   DECORACIONES (estrellas brújula del logo)
   ============================================================ */
        .star-deco {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    opacity: 0.07;
    pointer-events: none;
}

.star-deco svg {
    width: 100%;
    height: 100%;
}

.star-deco-sm {
    position: absolute;
    bottom: 40px;
    left: -40px;
    width: 180px;
    height: 180px;
    opacity: 0.05;
    pointer-events: none;
}

.star-deco-sm svg {
    width: 100%;
    height: 100%;
}

/* ============================================================
   CARD PRINCIPAL
   ============================================================ */
.register-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    background: var(--card-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 40px 40px;
    box-shadow:
        0 32px 64px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(197, 212, 0, 0.08) inset,
        0 1px 0 rgba(255, 255, 255, 0.12) inset;
    animation: cardIn 0.5s cubic-bezier(.22, .68, 0, 1.2) both;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(30px) scale(.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ============================================================
   ENCABEZADO / MARCA
   ============================================================ */
.brand-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 32px;
    gap: 10px;
}

.brand-logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-star {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: var(--white);
    line-height: 1;
}

.brand-name span {
    color: var(--lime);
}

.brand-sub {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gray-mid);
}

/* Línea divisora lima */
.lime-divider {
    width: 48px;
    height: 3px;
    background: var(--lime);
    border-radius: 2px;
    margin: 0 auto 24px;
}

/* ============================================================
   TÍTULOS DEL FORMULARIO
   ============================================================ */
.form-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

.form-sub {
    font-size: 13px;
    color: var(--gray-mid);
    margin-bottom: 28px;
    font-weight: 300;
}

/* ============================================================
   CAMPOS DEL FORMULARIO
   ============================================================ */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Animación escalonada de entrada por campo */
.field-wrap {
    position: relative;
    animation: fieldIn 0.4s ease both;
}

.field-wrap:nth-child(1) { animation-delay: .08s; }
.field-wrap:nth-child(2) { animation-delay: .14s; }
.field-wrap:nth-child(3) { animation-delay: .20s; }
.field-wrap:nth-child(4) { animation-delay: .26s; }

@keyframes fieldIn {
    from { opacity: 0; transform: translateX(-12px); }
    to   { opacity: 1; transform: translateX(0);     }
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-mid);
    margin-bottom: 7px;
    padding-left: 2px;
}

.field-inner {
    position: relative;
    display: flex;
    align-items: center;
}

/* Ícono izquierdo dentro del input */
.field-icon {
    position: absolute;
    left: 14px;
    color: var(--gray-mid);
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
    z-index: 1;
}

.field-inner input {
    width: 100%;
    padding: 13px 16px 13px 40px;
    background: var(--input-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    font-weight: 400;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
    -webkit-appearance: none;
}

.field-inner input::placeholder {
    color: rgba(176, 184, 208, 0.5);
    font-size: 13px;
}

.field-inner input:focus {
    border-color: var(--lime);
    background: rgba(197, 212, 0, 0.06);
    box-shadow: 0 0 0 3px rgba(197, 212, 0, 0.12);
}

/* El ícono cambia a lima cuando el campo tiene foco */
.field-inner:focus-within .field-icon {
    color: var(--lime);
}

/* ── Botón mostrar/ocultar contraseña ── */
.toggle-pw {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: var(--gray-mid);
    cursor: pointer;
    font-size: 13px;
    padding: 0;
    transition: color .2s;
    z-index: 1;
}

.toggle-pw:hover {
    color: var(--lime);
}

/* ── Barra de fortaleza de contraseña ── */
.pw-strength {
    margin-top: 6px;
    display: flex;
    gap: 4px;
    height: 3px;
}

.pw-strength span {
    flex: 1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    transition: background .3s;
}

.pw-strength[data-level="1"] span:nth-child(1)    { background: #e74c3c; }
.pw-strength[data-level="2"] span:nth-child(-n+2)  { background: #e67e22; }
.pw-strength[data-level="3"] span:nth-child(-n+3)  { background: var(--lime-soft); }
.pw-strength[data-level="4"] span                  { background: var(--lime); }

/* ============================================================
   BOTONES DE ACCIÓN
   ============================================================ */
.actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Botón principal — Registrarme */
.btn-register {
    width: 100%;
    padding: 14px;
    background: var(--lime);
    color: var(--navy-deep);
    border: none;
    border-radius: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, transform .15s, box-shadow .2s;
    box-shadow: 0 4px 16px rgba(197, 212, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-register:hover {
    background: var(--lime-soft);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(197, 212, 0, 0.35);
}

.btn-register:active {
    transform: translateY(0);
}

/* Botón secundario — Limpiar */
.btn-clear {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--gray-mid);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color .2s, color .2s, background .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-clear:hover {
    border-color: rgba(197, 212, 0, 0.4);
    color: var(--white);
    background: rgba(197, 212, 0, 0.05);
}

/* ============================================================
   PIE DE TARJETA
   ============================================================ */
.card-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: var(--gray-mid);
}

.card-footer a {
    color: var(--lime);
    text-decoration: none;
    font-weight: 600;
    transition: opacity .2s;
}

.card-footer a:hover {
    opacity: .75;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 500px) {
    .register-card {
        padding: 36px 24px 32px;
    }
}


/* 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;
    }
