:root {
    --wf-navy: #16234B;
    --wf-darknavy: #0F1A38;
    --wf-teal: var(--wf-accent, #01869A);   /* el color de la empresa; sin el, el turquesa de siempre */
    --wf-darkteal: var(--wf-accent-ink, #026575);
}
/* app.min.css trae DOS definiciones de.p-1/.p-2/.p-3/.p-4 (de dos librerias empaquetadas juntas) */
.p-1{padding:4px!important}
.p-2{padding:8px!important}
.p-3{padding:16px!important}
.p-4{padding:24px!important}
.bg-login {
    background-image: url('../images/background/bg-login.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}
.authentication-bg::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 1;
}
.account-pages, .card, .card-body {
    position: relative;
    z-index: 2;
}
/* Ancho FIJO en pixeles (no depende del tamaño/forma de la ventana) -- así la tarjeta se ve siempre igual */
.account-pages .card {
    max-width: 460px;
    margin-left: auto;
}
.welcome-text {
    font-size: 13px;
    color: #000;
    margin-bottom: 0;
    padding-left: 10px;
    border-left: 5px solid var(--wf-teal) ;
    text-transform: uppercase;
}
.password-text {
    font-weight: bold;
    font-size: 16px;
    color: #000;
    margin-bottom: 0;
    padding-left: 10px;
    border-left: 5px solid var(--wf-teal);
    text-transform: uppercase;
}
.portal-text {
    font-weight: bold;
    font-size: 23px;
    color: #000;
    margin-top: 0;
    text-transform: uppercase;
}
.business-text {
    font-weight: bold;
    font-size: 23px;
    color: var(--wf-navy);
    text-transform: uppercase;
}
.text-description{
    text-align: left;
}
.checkbox-success input[type=checkbox]:checked+label::before {
    background-color: var(--wf-teal);
    border-color: var(--wf-teal);
}
/* Boton de las pantallas de acceso: el color de la empresa (el mismo del portal) en TODOS sus estados; antes era el boton de advertencia de Bootstrap y al pulsarlo parpadeaba su naranja de :active */
.btn-access,
.btn-access:hover,
.btn-access:focus,
.btn-access:active,
.btn-access:not(:disabled):not(.disabled):active,
.btn-access:disabled,
.btn-access.disabled {
    color: var(--wf-on-accent, #fff);
    background-color: var(--wf-accent, #01869A);
    border-color: var(--wf-accent, #01869A);
    box-shadow: none;
}
.btn-access { transition: filter .15s ease; }
.btn-access:hover { filter: brightness(.92); }
.btn-access:not(:disabled):not(.disabled):active { filter: brightness(.86); }
.btn-access:focus-visible { outline: 2px solid var(--wf-accent, #01869A); outline-offset: 2px; }
.btn-access:disabled, .btn-access.disabled { filter: none; opacity: .75; cursor: default; }
.btn {
    font-weight: 600;
}
.form-group i.togglePassword {
    position: absolute;
    top: 72%;
    right: 25px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 15px;
    transition: color 0.2s ease;
}

/* ===== INGRESAR CON CÓDIGO POR WHATSAPP (solo si la empresa lo enciende) =====
   Una sola versión, sobria y compacta: selector segmentado, una línea de «código enviado», casillas de 44×48
   y los errores en línea bajo las casillas (sin avisos flotantes: nunca hay dos mensajes a la vez). */
:root{ --wa:#25D366; --wa-ink:#128C7E; --otp-line:#ced4da; --otp-muted:#6c757d; --otp-err:#c0392b; }
.wf-hide{display:none!important}

/* Selector: Contraseña | Código por WhatsApp */
.acc-seg{display:flex;gap:4px;padding:3px;margin-bottom:18px;background:#f1f3f5;border-radius:8px}
.acc-opt{flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 10px;
  border:0;border-radius:6px;background:transparent;color:var(--otp-muted);font-size:13px;font-weight:600;line-height:1;cursor:pointer;
  white-space:nowrap;transition:background .15s,color .15s,box-shadow .15s}
.acc-opt span{overflow:hidden;text-overflow:ellipsis}
.acc-opt .lbl-sm{display:none}
@media (max-width:419.98px){ .acc-opt .lbl-lg{display:none} .acc-opt .lbl-sm{display:inline} }
.acc-opt i{font-size:13px}
.acc-opt.wa{position:relative;overflow:visible}
.acc-opt .acc-tag{position:absolute;top:-10px;right:6px;overflow:visible;padding:2px 7px;border-radius:9px;background:var(--wa-ink);color:#fff;
  font-size:9.5px;font-weight:700;line-height:1.2;letter-spacing:.2px;white-space:nowrap;box-shadow:0 0 0 2px #fff;pointer-events:none}
.acc-seg{margin-top:12px}
.acc-opt svg{width:15px;height:15px;flex:none;fill:currentColor}
.acc-opt:hover{color:#212529}
.acc-opt.on{background:#fff;color:#212529;box-shadow:0 1px 2px rgba(16,24,40,.12)}
.acc-opt.wa.on svg{fill:var(--wa)}
.acc-opt:focus{outline:0}
.acc-opt:focus-visible{box-shadow:0 0 0 2px var(--wf-accent,#01869A)}

/* Paso 1: documento */
.otp-note{font-size:12px;color:var(--otp-muted);margin:6px 0 0}
.btn-wa,.btn-wa:hover,.btn-wa:focus,.btn-wa:active,.btn-wa:not(:disabled):not(.disabled):active,.btn-wa:disabled{
  color:#fff;background:var(--wa);border-color:var(--wa);box-shadow:none;display:flex;align-items:center;justify-content:center;gap:8px}
.btn-wa{transition:filter .15s}
.btn-wa:hover{filter:brightness(.94)}
.btn-wa:disabled{opacity:.75;filter:none}
.btn-wa:focus-visible{outline:2px solid var(--wa-ink);outline-offset:2px}
.wa-logo{width:17px;height:17px;fill:currentColor;flex:none}

/* Paso 2: código */
.otp-sent{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#495057;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid #eef0f2}
.otp-sent svg{width:15px;height:15px;flex:none;fill:var(--wa)}
.otp-sent span{flex:1 1 auto;min-width:0}
.otp-sent b{color:#212529;white-space:nowrap}
.otp-label{display:block;font-size:13px;margin-bottom:8px}
.otp-boxes{display:flex;justify-content:center;gap:8px}
.otp-boxes input{flex:0 0 44px;width:44px;height:48px;padding:0;text-align:center;font-size:20px;font-weight:600;color:#212529;
  background:#fff;border:1px solid var(--otp-line);border-radius:6px;caret-color:var(--wf-accent,#01869A);transition:border-color .15s,box-shadow .15s}
.otp-boxes input:focus{outline:0;border-color:var(--wf-accent,#01869A);box-shadow:0 0 0 3px rgba(1,134,154,.15)}
.otp-boxes input.filled{border-color:#868e96}
.otp-boxes.err input{border-color:var(--otp-err)}
.otp-msg{min-height:0;margin:0;font-size:12.5px;color:var(--otp-err);text-align:center}
.otp-msg:not(:empty){margin-top:8px}
#otp_req_msg{text-align:left}
.otp-meta{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:10px;font-size:12px;color:var(--otp-muted)}
.otp-meta b{color:#212529;font-variant-numeric:tabular-nums}
.otp-meta b.late{color:var(--otp-err)}
.otp-link{background:none;border:0;padding:0;font-size:12.5px;font-weight:600;color:var(--wf-accent,#01869A);cursor:pointer}
.otp-link:hover{text-decoration:underline}
.otp-link:disabled{color:#adb5bd;font-weight:400;cursor:default;text-decoration:none}
.otp-link:focus-visible{outline:2px solid var(--wf-accent,#01869A);outline-offset:2px;border-radius:2px}

/* «Procesando» dentro del propio botón */
.wf-spin{display:inline-block;width:14px;height:14px;margin-right:8px;vertical-align:-2px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:wf-spin .7s linear infinite}
@keyframes wf-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.wf-spin{animation-duration:2s}.acc-opt,.otp-boxes input{transition:none}}

/* Celular: las 6 casillas siempre caben (el ancho sale del espacio real, sin pasar de 44px) */
@media (max-width:575.98px){
  .acc-opt{font-size:12.5px;padding:0 6px}
  .otp-boxes{gap:6px}
  .otp-boxes input{flex:1 1 0;width:auto;max-width:44px;height:46px;font-size:19px}
}
