﻿/* ==========================================
LOGIN OVERLAY COMPONENT
========================================== */
/* Etiqueta: <div id="loginOverlay" class="login-overlay">
   ID: loginOverlay
   Class: login-overlay
*/
.login-overlay {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 65px;
    height: 0;
    z-index: 15000;
    overflow: hidden;
    transition: height 0.45s ease;
    pointer-events: none;
    left: 50%; /* Mueve el borde izquierdo al centro exacto */
    transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
}

/* Clase de estado para mostrar el overlay animado */
.login-overlay.show {
    height: calc(100vh - 65px);
    pointer-events: auto;
}

/* Etiqueta: <div class="login-window">
   Class: login-window
*/
.login-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 21px 21px 0 0;
    box-sizing: border-box;
    box-shadow: 0 0 10px rgba(0,0,0,.5);
    margin-top: 10px;
    overflow: hidden; /* Ya no hace scroll */
}

/* Etiqueta: <div class="login-header">
   Class: login-header
*/


#loginDragHandle {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}

#loginHeader {
    touch-action: none; /* Bloquea el scroll nativo del dedo solo en el handle */
}
/* Etiqueta: <div class="login-header">
   Class: login-header
*/
.login-header {
    position: relative;
    flex-shrink: 0;
    z-index: 10;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 16px 16px 0;
    border-bottom: 0.5px solid #c7c7c7;
    cursor: grab;
    border-radius: 21px 21px 0 0;
}
.login-drag-area {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    width: 60px;
    height: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    cursor: grab;
    z-index: 2;
}

    .login-drag-area:active {
        cursor: grabbing;
    }

.login-drag-pill {
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.25);
}
 
/* Etiqueta: <span id="txtHeaderWa" class="txt-header">
   ID: txtHeaderWa
   Class: txt-header
*/
.txtlogin-header {
    font-size: 20px;
    font-weight: 600;
    user-select: none;
}

/* Etiqueta: <button id="btnIconWa" class="login-icon">
   ID: btnIconWa
   Class: login-icon
*/
.login-back {
    margin-left: auto;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Etiqueta: <div class="login-content">
   Class: login-content
*/
.login-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 10px 10px;
}
/* ==========================================
   SCROLLBAR - LOGIN CONTENT
   ========================================== */

/* Etiqueta: <div class="login-content">
   Class: login-content
*/
.login-content {
    scrollbar-width: thin;
    scrollbar-color: #c7c7c7 transparent;
}

    .login-content::-webkit-scrollbar {
        width: 8px;
    }

.hide-scrollbar {
    scrollbar-width: none;
}

    .hide-scrollbar::-webkit-scrollbar {
        display: none;
    }

.visible-scrollbar {
    scrollbar-width: thin;
}

    .visible-scrollbar::-webkit-scrollbar {
        width: 8px;
    }
/* Motores WebKit (Chrome, Edge, Safari, Opera) - Barra completa */
.login-content::-webkit-scrollbar {
    width: 4px;
    height: 4px; /* Por si llega a aparecer scroll horizontal */
}

/* Motores WebKit - Carril o fondo del scroll */
.login-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Motores WebKit - Barra arrastrable */
.login-content::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 999px;
    transition: background .2s ease;
}

    /* Motores WebKit - Barra arrastrable en estado Hover */
    .login-content::-webkit-scrollbar-thumb:hover {
        background: #8f8f8f;
    }

/* Motores WebKit - Esquina interna de scrollbar */
.login-content::-webkit-scrollbar-corner {
    background: transparent;
}

/* Motores WebKit - ELIMINA POR COMPLETO LAS FLECHAS */
.login-content::-webkit-scrollbar-button {
    width: none !important;
    height: none !important;
}
/* Etiqueta: <div class="demo-card">
   Class: demo-card
*/
/* Card contenedora */


/* Badge de Próximamente */
.login-badge-coming-soon {
    display: inline-block;
    background-color: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 10px;
    border-radius: 12px;
    margin-bottom: 8px;
}

/* Contenedor de Iconos */
.login-icons-wrapper {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG Chat (Principal) */
.login-svg-user {
    width: 50px;
    height: 50px;
    color: #25d366; /* Verde característico o usa el azul de tu marca #007bff */
}

/* SVG Lupa (Badge secundario) */
.login-svg-key-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background-color: #007bff;
    color: #ffffff;
    border-radius: 50%;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

    .login-svg-key-badge svg {
        width: 13px;
        height: 13px;
    }

/* Textos */
.login-info-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 8px 0;
}

.login-info-description {
    font-size: 0.88rem;
    color: #6c757d;
    margin: 0;
    line-height: 1.4;
    max-width: 290px;
}
@media (min-width: 600px) {
    .login-overlay {
        left: 50%; /* Mueve el borde izquierdo al centro exacto */
        transform: translateX(-50%); /* Recula la mitad del ancho del elemento para centrarlo perfecto */
        padding-left: 10px;
        padding-right: 10px;
    }

    .login-window {
        margin-top: 20px;
        border-radius: 21px 21px;
    }
}