/*  ███████╗██╗ ██████╗ ███╗   ██╗    ███████╗████████╗██╗   ██╗██╗     ███████╗███████╗
    ██╔════╝██║██╔════╝ ████╗  ██║    ██╔════╝╚══██╔══╝╚██╗ ██╔╝██║     ██╔════╝██╔════╝
    ███████╗██║██║  ███╗██╔██╗ ██║    ███████╗   ██║    ╚████╔╝ ██║     █████╗  ███████╗
    ╚════██║██║██║   ██║██║╚██╗██║    ╚════██║   ██║     ╚██╔╝  ██║     ██╔══╝  ╚════██║
    ███████║██║╚██████╔╝██║ ╚████║    ███████║   ██║      ██║   ███████╗███████╗███████║
    ╚══════╝╚═╝ ╚═════╝ ╚═╝  ╚═══╝    ╚══════╝   ╚═╝      ╚═╝   ╚══════╝╚══════╝╚══════╝ */

/* =============================================================================
   VARIABLES DEL SISTEMA - ESTILOS GENERALES
   ============================================================================= */

:root {
    /* === COLORES PRINCIPALES === */
    --primary-dark-bg: #2b2e33;
    --TNS-color-texto: #ffffff;
    --primary-border-color: #495057;
    --primary-focus-color: rgba(15, 170, 158, 0.4);
    --primary-violet-bg: #712cf9;
    --primary-violet-rgb: 112.520718, 44. 062154, 249.437846;
    /* === COLORES HOVER === */
    --hover-violet-bg: #6528e0;
    --active-violet-bg: #5a23c8;
    /* === ESPACIADO Y DIMENSIONES === */
    --form-padding: 1rem;
    --form-max-width: 370px;
    --card-padding: 0px 20px 20px;
    --border-radius: 0.375rem;
    --input-grid-gap: 8px;
    --input-height: 56px;
    /* === TRANSICIONES === */
    --transition-standard: all 0.3s ease;
    --transition-border: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
    --transition-background: background-color 5000s ease-in-out 0s;
}

/* =============================================================================
   ESTILOS BASE Y RESET
   ============================================================================= */

/* Estilos base del documento */
html,
body {
    height: 100%;
    color: var(--TNS-color-texto) !important;
}

/* Reset de elementos tipográficos */
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
h1,
h2,
h3,
h4,
h5,
h6,
a,
p,
label {
    color: var(--TNS-color-texto) !important;
}

/* =============================================================================
   COMPONENTES DE MODAL
   ============================================================================= */

/* Configuración base de modales */
.modal-header,
.modal-content,
.modal-footer {
    border: none !important;
    background-color: var(--primary-dark-bg) !important;
}

/* =============================================================================
   CAMPOS DE ENTRADA ESPECÍFICOS
   ============================================================================= */

/* Configuración de autocompletado webkit */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    transition: var(--transition-background);
    -webkit-box-shadow: 0 0 0 1000px var(--primary-dark-bg) inset !important;
    -webkit-text-fill-color: var(--TNS-color-texto) !important;
}

/* Campos de contraseña */
input[type="password"]::-ms-reveal {
    color: var(--TNS-color-texto) !important;
    background-color: transparent;
}

input[type="password"] {
    color-scheme: dark;
}

/* Campos numéricos - reset de estilos del navegador */
input[type=number] {
    -webkit-appearance: none;
    /* Safari y Chrome */
    -moz-appearance: textfield;
    /* Firefox */
    appearance: textfield;
    /* Para navegadores que soporten esta propiedad */
}

/* =============================================================================
   COMPONENTES DE TOAST Y NOTIFICACIONES
   ============================================================================= */

.blazored-toast {
    background-color: var(--primary-dark-bg) !important;
    color: var(--TNS-color-texto) !important;
}

/* =============================================================================
   BOTONES Y ELEMENTOS INTERACTIVOS
   ============================================================================= */

/* Botón principal personalizado */
.btn-bd-primary {
    --bd-violet-bg: var(--primary-violet-bg);
    --bd-violet-rgb: var(--primary-violet-rgb);
    --bs-btn-font-weight: 600;
    --bs-btn-color: var(--bs-white);
    --bs-btn-bg: var(--bd-violet-bg);
    --bs-btn-border-color: var(--bd-violet-bg);
    --bs-btn-hover-color: var(--bs-white);
    --bs-btn-hover-bg: var(--hover-violet-bg);
    --bs-btn-hover-border-color: var(--hover-violet-bg);
    --bs-btn-focus-shadow-rgb: var(--bd-violet-rgb);
    --bs-btn-active-color: var(--bs-btn-hover-color);
    --bs-btn-active-bg: var(--active-violet-bg);
    --bs-btn-active-border-color: var(--active-violet-bg);
}

/* Toggle de modo oscuro */
.bd-mode-toggle {
    z-index: 1500;
}

/* =============================================================================
   COMPONENTES DE VERIFICACIÓN EN DOS PASOS
   ============================================================================= */

/* Contenedor principal de verificación */
.div-content-verificaciondospasos {
    padding-inline: 3rem;
}

/* Grid de inputs para códigos */
.inputs-code {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    flex-direction: row;
    justify-content: center;
    gap: var(--input-grid-gap);
}

/* Items individuales del grid */
.inputs-code .item {
    flex-wrap: nowrap;
    min-width: 30px;
    max-width: 53.33px;
    height: var(--input-height);
    border-width: 2px;
    border-color: transparent;
    border-radius: 4px;
    border-style: solid;
    display: inline-flex;
    align-items: center;
    background-color: rgba(186, 186, 186, 0.1);
    transition: var(--transition-border);
}

/* Estados hover de los items */
.inputs-code .item:hover {
    border-color: rgb(237, 237, 237);
    background-color: rgb(241, 241, 241);
}

/* Estados focus de los items */
.inputs-code .item:focus-within {
    border-color: #000;
    background-color: transparent;
}

/* Estados válidos de los inputs */
.inputs-code .item input:valid {
    background-color: white;
}

/* Configuración de inputs dentro de items */
.inputs-code .item input {
    padding: 0px;
    text-align: center;
    font-size: 31.25px;
    font-weight: 700;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    color: rgb(31, 31, 31);
    line-height: 18px;
}

/* =============================================================================
   CHECKBOXES Y ELEMENTOS DE VERIFICACIÓN
   ============================================================================= */

/* Configuración de checkbox de verificación */
.form-checkbox-verificaciondospasos label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.5rem;
}

.form-checkbox-verificaciondospasos input {
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
}

/* =============================================================================
   FOOTER Y ENLACES
   ============================================================================= */

/* Enlaces del footer de verificación */
.footer-checkbox-verificaciondospasos a {
    color: #000000;
    font-size: 0.7rem;
    font-weight: 600;
}

.footer-checkbox-verificaciondospasos a:hover,
.footer-checkbox-verificaciondospasos a:active {
    text-decoration: underline;
}

/* Iconos del footer */
.footer-checkbox-verificaciondospasos button i {
    font-size: 1.5rem;
}

/* =============================================================================
   ELEMENTOS MULTIMEDIA Y GRÁFICOS
   ============================================================================= */

/* Imágenes responsivas */
.img-fluid {
    max-width: 80%;
}

/* =============================================================================
   ELEMENTOS DE NAVEGACIÓN Y NAVEGADOR
   ============================================================================= */

/* Placeholder para imágenes */
.bd-placeholder-img {
    font-size: 1.125rem;
    text-anchor: middle;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* Divisor de ejemplos */
.b-example-divider {
    width: 100%;
    height: 3rem;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

/* Divisor vertical */
.b-example-vr {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
}

/* Scroller de navegación */
.nav-scroller {
    position: relative;
    z-index: 2;
    height: 2.75rem;
    overflow-y: hidden;
}

.nav-scroller .nav {
    display: flex;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    margin-top: -1px;
    overflow-x: auto;
    text-align: center;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

/* =============================================================================
   MEDIA QUERIES - RESPONSIVE DESIGN
   ============================================================================= */

/* Pantallas medianas y grandes */
@media (min-width: 768px) {
    .bd-placeholder-img-lg {
        font-size: 3.5rem;
    }
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 575px) {
    .div-content-verificaciondospasos {
        padding-inline: 0rem;
    }
}