/* General */
::selection {
  color: var(--wf-on-accent);
  background-color: var(--wf-accent);
}
a {
    color: var(--wf-accent) !important;
    text-decoration: none;
    font-size: 14px;
    background-color: transparent;
}
a:hover {
    text-decoration: underline
}
#loading {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: #d9e0e7;
    z-index: 9999;
    display: none;
}
.loading-spinner {
    height: 36px;
    width: 36px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -18px 0 0 -18px;
    border: 2px solid rgba(45,53,60,.85);
    border-top: 2px solid #fff;
    -webkit-border-radius: 36px;
    border-radius: 36px;
    -webkit-animation: rotation .6s infinite linear;
    -moz-animation: rotation .6s infinite linear;
    -ms-animation: rotation .6s infinite linear;
    -o-animation: rotation .6s infinite linear;
    animation: rotation .6s infinite linear;
}
.form-control:focus {
  border: 1px solid var(--wf-accent);
}
/* End General */
/* Jconfirm */
.jconfirm .jconfirm-box.jconfirm-type-success{
  border-top: solid 7px #00acac !important;
  -webkit-animation-name: type-green;
  animation-name: type-green;
}
.jconfirm .jconfirm-box.jconfirm-type-success .jconfirm-title-c .jconfirm-icon-c{
  color: #00acac !important;
}
.jconfirm .jconfirm-box.jconfirm-type-info{
  border-top: solid 7px #49b6d6 !important;
  -webkit-animation-name: type-blue;
  animation-name: type-blue;
}
.jconfirm .jconfirm-box.jconfirm-type-info .jconfirm-title-c .jconfirm-icon-c{
  color: #49b6d6 !important;
}
/* End Jconfirm */
/* ================== PANTALLAS DE ACCESO (login y restablecer contrasena) ==================
   Acabado fino del template (auth_cover_bg_sign_in): foto de fondo oscurecida, formulario sin tarjeta, titulo y subtitulo centrados, etiquetas arriba, campos delgados de borde fino y boton
   del color de marca. El fondo es SIEMPRE la foto que el negocio elige en Ajustes generales > "Fondo de inicio de sesion" (business.background). El color del boton y de los enfoques es
   --wf-accent: el que se eligio por ultima vez en este navegador (WfUiTheme::accessStyle). Lo comparten login.php y restore_password.php: un solo CSS. */
:root{
    --lv2-tint-top: rgba(10,15,26,.74);
    --lv2-tint-bottom: rgba(10,15,26,.86);
    --lv2-line: rgba(255,255,255,.24);
    --lv2-soft: rgba(255,255,255,.72);
    --lv2-faint: rgba(255,255,255,.52);
}
html, body.login-v2-body{ height: 100%; }
body.login-v2-body{ margin: 0; background: #0a0f1a; }
#page-container.fade{ opacity: 1; }
.login-v2-wrap{
    position: relative;
    z-index: 1;
    min-height: 100vh;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px 24px 20px;
    text-align: center;
    color: #fff;
    background: linear-gradient(var(--lv2-tint-top), var(--lv2-tint-bottom)), var(--lv2-bg, none) center / cover no-repeat;
}
.login-v2-form-wrap{ width: 100%; max-width: 360px; }
.login-v2-brand{ margin-bottom: 22px; }
/* el logo va directo sobre la foto, sin fondo y con SUS colores: si el archivo tiene fondo transparente (wf_logo_is_transparent lo decide en el servidor) lleva un contorno blanco fino para que se lea sobre la foto oscura; si trae su propio fondo se deja tal cual */
.login-v2-logo{ display: block; width: auto; height: auto; max-width: 220px; max-height: 60px; margin: 0 auto; }
.login-v2-logo.is-clear{ filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff) drop-shadow(0 2px 8px rgba(0,0,0,.45)); }
.login-v2-view{ animation: lv2In .22s ease-out; }
@keyframes lv2In{ from{ opacity: 0; transform: translateY(6px); } to{ opacity: 1; transform: none; } }
.login-v2-icon{ display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 14px; background: color-mix(in srgb, var(--wf-accent) 22%, transparent); color: var(--wf-accent); font-size: 24px; }
.login-v2-sub b{ color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.login-v2-slogan{ margin: 10px 0 0 0; color: var(--lv2-faint); font-size: 11px; letter-spacing: .8px; text-transform: uppercase; }
.login-v2-title{ margin: 0 0 6px 0; color: #fff; font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -.2px; }
.login-v2-sub{ margin: 0 auto 24px auto; max-width: 320px; color: var(--lv2-soft); font-size: 13px; line-height: 1.45; }
.login-v2-form-wrap form{ text-align: left; }
.login-v2-group{ margin-bottom: 14px; }
.login-v2-group--last{ margin-bottom: 20px; }
.login-v2-back{ margin: 16px 0 0 0; color: var(--lv2-faint); font-size: 12.5px; }
.login-v2-back a{ color: #fff !important; font-size: 12.5px; font-weight: 700; text-decoration: underline; }
.login-v2-label{
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 6px 0;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.login-v2-label sup{ top: 0; color: #ff5b57; font-size: 13px; }
.login-v2-label a{ color: #fff !important; font-size: 12.5px; font-weight: 600; text-decoration: underline; }
.login-v2-input{ position: relative; }
.login-v2-input input{
    display: block;
    width: 100%;
    height: 44px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid var(--lv2-line);
    border-radius: 10px;
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.login-v2-input input::placeholder{ color: var(--lv2-faint); }
.login-v2-input input:hover{ border-color: rgba(255,255,255,.4); }
.login-v2-input input:focus{
    outline: none;
    border-color: var(--wf-accent);
    background: rgba(255,255,255,.08);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wf-accent) 28%, transparent);
}
/* el navegador pinta de claro los campos autocompletados: se devuelve al tono del formulario */
.login-v2-input input:-webkit-autofill{
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    transition: background-color 9999s ease-out 0s;
    box-shadow: 0 0 0 1000px #1b2230 inset;
}
.login-v2-input.has-eye input{ padding-right: 42px; }
.login-v2-input i.togglePassword{
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--lv2-faint);
    font-size: 14px;
    transition: color .15s ease;
}
.login-v2-input i.togglePassword:hover{ color: #fff; }
.login-v2-check{ display: inline-flex; align-items: center; gap: 9px; margin: 2px 0 18px 0; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; user-select: none; }
.login-v2-check input{
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    position: relative;
    width: 18px;
    height: 18px;
    margin: 0;
    border: 1px solid var(--lv2-line);
    border-radius: 5px;
    background: rgba(255,255,255,.05);
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.login-v2-check input:checked{ background: var(--wf-accent); border-color: var(--wf-accent); }
.login-v2-check input:checked::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid var(--wf-on-accent);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.login-v2-check input:focus-visible{ outline: 2px solid var(--wf-accent); outline-offset: 2px; }
.login-v2-btn{
    display: block;
    width: 100%;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--wf-accent);
    color: var(--wf-on-accent);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, box-shadow .15s ease;
}
.login-v2-btn:hover{ filter: brightness(.93); }
.login-v2-btn:focus-visible{ outline: 2px solid #fff; outline-offset: 2px; }
.login-v2-btn:disabled{ opacity: .7; cursor: default; filter: none; }
.login-v2-features{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 26px;
    margin: 30px auto 0 auto;
    color: var(--lv2-soft);
    font-size: 11.5px;
}
.login-v2-feature{ display: flex; flex-direction: column; align-items: center; gap: 6px; }
.login-v2-feature i{ font-size: 16px; color: var(--lv2-soft); }
.login-v2-footer{ margin-top: 18px; }
.login-v2-copyright{ margin: 0; font-size: 10.5px; color: var(--lv2-faint); }
.login-v2-legal-link{ margin: 4px 0 0 0; font-size: 10.5px; }
.login-v2-legal-link a{ color: var(--lv2-faint) !important; text-decoration: underline; font-size: 10.5px; }
.login-v2-dev-credit{ margin: 6px 0 0 0; font-size: 9.5px; color: var(--lv2-faint); opacity: .8; }
.login-v2-dev-credit a{ color: var(--lv2-faint) !important; text-decoration: none; font-size: 9.5px; }
.login-v2-dev-credit a:hover{ text-decoration: underline; }
@media (max-width: 767px){
    .login-v2-wrap{ padding-top: 24px; }
    .login-v2-brand{ margin-bottom: 18px; }
    .login-v2-title{ font-size: 26px; }
    .login-v2-features{ gap: 20px; margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce){
    .login-v2-input input, .login-v2-check input, .login-v2-btn, .login-v2-input i.togglePassword{ transition: none; }
    .login-v2-view{ animation: none; }
}
/* End pantallas de acceso */
