/* Entrar y registrarse: tarjeta compacta y moderna (2026-10-16).
 *
 * Se carga DESPUES de welcome.css y solo en esas paginas. No cambia ni un
 * selector del tema: reaprovecha .tag_field, .tag_auth_box y compania y les
 * cambia la ropa, asi que la etiqueta flotante (:placeholder-shown) sigue
 * funcionando igual. Para volver atras basta con quitar el <link>. */

.tag_welcome {
  --ch-acento: #5b4bff;
  --ch-acento-2: #8a5cff;
  --ch-tinta: #121421;
  --ch-apagado: #6b7280;
  --ch-borde: #e3e6ef;
  --ch-fondo-campo: #f7f8fc;
  --main: #5b4bff;
  background: linear-gradient(160deg, #f6f5ff 0%, #eef2ff 45%, #f7f4ff 100%);
  min-height: 100vh;
}

/* La mancha decorativa del tema compite con la tarjeta: se suaviza. */
.tag_auth_effect, .tag_auth_effect_bottom { opacity: .07; }

.tag_welcome .tag_auth_box,
.tag_welcome .tag_auth_box_auto {
  max-width: 430px;
  margin: 0 auto;
  padding: 30px 28px 26px;
  background: #fff;
  border: 1px solid var(--ch-borde);
  border-radius: 20px;
  box-shadow: 0 18px 50px -24px rgba(32, 25, 90, .35), 0 2px 6px rgba(20, 20, 60, .04);
}

.tag_welcome .tag_auth_box .title {
  font-size: 23px;
  font-weight: 700;
  color: var(--ch-tinta);
  letter-spacing: -.01em;
  margin: 0 0 4px;
  text-align: left;
}
.tag_welcome .tag_auth_box form > .title + .errors { margin-top: 10px; }

/* Campos: mismos selectores, menos alto y esquinas enteras. */
.tag_welcome .tag_field { margin: 0 0 14px; }
.tag_welcome .tag_field > input,
.tag_welcome .tag_field > select,
.tag_welcome .tag_field > textarea,
.tag_welcome .tag_field > .btn-group.bootstrap-select {
  min-height: 54px;
  height: 54px;
  border: 1px solid var(--ch-borde);
  border-top: solid 20px transparent;
  border-radius: 13px;
  background-color: var(--ch-fondo-campo);
  color: var(--ch-tinta);
  font-size: 15px;
  padding: 0 14px 7px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.tag_welcome .tag_field > textarea { height: auto; }
.tag_welcome .tag_field > input:hover,
.tag_welcome .tag_field > select:hover,
.tag_welcome .tag_field > textarea:hover {
  background-color: #f2f4fb;
  border-color: #d3d8e8;
}
.tag_welcome .tag_field > input:focus,
.tag_welcome .tag_field > select:focus,
.tag_welcome .tag_field > textarea:focus {
  background-color: #fff;
  border-color: var(--ch-acento);
  /* OJO: el borde de arriba es el hueco de la etiqueta flotante y tiene que
   * seguir siendo transparente, o el campo enfocado sale con una franja de
   * color de 20 px encima (medido en Chrome el 2026-10-16). */
  border-top-color: transparent;
  box-shadow: 0 0 0 3px rgba(91, 75, 255, .13);
  outline: none;
}
.tag_welcome .tag_field > input + span,
.tag_welcome .tag_field > select + span,
.tag_welcome .tag_field > textarea + span {
  padding: 7px 15px 0;
  font-size: 12px;
  color: var(--ch-apagado);
  font-weight: 500;
}
.tag_welcome .tag_field > input:not(:focus):placeholder-shown + span,
.tag_welcome .tag_field > textarea:not(:focus):placeholder-shown + span {
  font-size: 15px;
  padding: 16px 15px;
}
/* La rayita de Material sobra cuando ya hay anillo de foco. */
.tag_welcome .tag_field > input + span::after,
.tag_welcome .tag_field > select + span::after,
.tag_welcome .tag_field > textarea + span::after { display: none; }

.tag_welcome .tag_wel_forgot > a { top: 15px; color: var(--ch-apagado); }
.tag_welcome .tag_wel_forgot > a:hover { color: var(--ch-acento); }

/* Botón principal. Solo .tag_wel_btn: .btn-main lo llevan también el botón
 * «Login» de la cabecera y otros, y se estiraban de lado a lado. */
.tag_welcome .tag_wel_btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--ch-acento) 0%, var(--ch-acento-2) 100%);
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: .01em;
  box-shadow: 0 10px 22px -10px rgba(91, 75, 255, .75);
  transition: transform .12s ease, box-shadow .15s ease, opacity .15s ease;
}
.tag_welcome .tag_wel_btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(91, 75, 255, .85);
}
.tag_welcome .tag_wel_btn:active:not(:disabled) { transform: translateY(0); }
.tag_welcome .tag_wel_btn:disabled { opacity: .45; box-shadow: none; }

.tag_welcome .round-check { margin: 4px 0 16px; font-size: 13px; color: var(--ch-apagado); line-height: 1.45; }
.tag_welcome .round-check a { color: var(--ch-acento); font-weight: 600; }
.tag_welcome .helper-text { font-size: 12px; margin: -8px 0 14px; color: var(--ch-apagado); }

.tag_welcome .u_divider { color: #9aa1b1; font-size: 12.5px; margin: 16px 0 12px; }
.tag_welcome .social_btns { gap: 8px; flex-wrap: wrap; }
.tag_welcome .social_btns .btn {
  width: 44px; height: 44px;
  border: 1px solid var(--ch-borde);
  border-radius: 12px;
  background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, transform .12s ease;
}
.tag_welcome .social_btns .btn:hover { border-color: #c9cfe2; transform: translateY(-1px); }

.tag_welcome .tag_wel_register { margin-top: 16px; font-size: 14px; color: var(--ch-apagado); }
.tag_welcome .tag_wel_register a { color: var(--ch-acento); font-weight: 600; }

.tag_welcome .tag_wel_title { color: var(--ch-tinta); font-weight: 700; letter-spacing: -.02em; }

/* Móvil: la tarjeta ocupa el ancho y se quita todo lo decorativo. */
@media (max-width: 767px) {
  .tag_welcome { background: #fff; }
  .tag_welcome .tag_auth_box,
  .tag_welcome .tag_auth_box_auto {
    max-width: 100%;
    padding: 22px 18px 20px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .tag_welcome { min-height: auto; }
  .tag_welcome .tag_wel_middle { padding-top: 4px; margin-top: 10px; }
  .tag_welcome .tag_wel_upper { padding-bottom: 0; }
  .tag_welcome .tag_wel_middle > .container { padding-left: 14px; padding-right: 14px; }
  .tag_welcome .tag_auth_box .title { font-size: 21px; }
  .tag_welcome .tag_field { margin-bottom: 12px; }
  .tag_welcome .tag_field > input,
  .tag_welcome .tag_field > select { min-height: 52px; height: 52px; }
  .tag_welcome .tag_wel_btn { height: 50px; }
  .tag_auth_effect, .tag_auth_effect_bottom { display: none; }
}

/* ---------- Ventana del código de verificación ---------- */
.ch-verif-capa {
  position: fixed; inset: 0; z-index: 10050;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(16, 18, 34, .55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.ch-verif-capa.ch-abierta { display: flex; }
.ch-verif-caja {
  width: 100%; max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 22px;
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(10, 10, 40, .5);
  animation: ch-verif-entra .18s ease-out;
}
@keyframes ch-verif-entra { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ch-verif-icono {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #5b4bff 0%, #8a5cff 100%);
  color: #fff;
}
.ch-verif-caja h3 { font-size: 20px; font-weight: 700; color: #121421; margin: 0 0 6px; }
.ch-verif-caja .ch-verif-sub { font-size: 14px; color: #6b7280; margin: 0 0 18px; line-height: 1.5; }
.ch-verif-caja .ch-verif-correo { display: block; font-weight: 600; color: #121421; margin-top: 3px; word-break: break-all; }
.ch-verif-caja input.ch-verif-codigo {
  width: 100%; height: 58px;
  text-align: center;
  font-size: 26px; font-weight: 700;
  letter-spacing: 11px; text-indent: 11px;
  color: #121421;
  border: 1px solid #e3e6ef; border-radius: 14px;
  background: #f7f8fc;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.ch-verif-caja input.ch-verif-codigo:focus {
  outline: none; background: #fff;
  border-color: #5b4bff; box-shadow: 0 0 0 3px rgba(91, 75, 255, .13);
}
.ch-verif-caja input.ch-verif-codigo::placeholder { letter-spacing: 8px; color: #c7ccdb; font-weight: 600; }
.ch-verif-caja .ch-verif-aviso { min-height: 20px; font-size: 13px; margin: 10px 0 2px; line-height: 1.4; }
.ch-verif-caja .ch-verif-aviso.ch-mal { color: #d6336c; }
.ch-verif-caja .ch-verif-aviso.ch-bien { color: #1a9a5b; }
.ch-verif-caja .ch-verif-enviar {
  width: 100%; height: 52px; margin-top: 10px;
  border: 0; border-radius: 13px;
  background: linear-gradient(135deg, #5b4bff 0%, #8a5cff 100%);
  color: #fff; font-size: 15.5px; font-weight: 600;
  box-shadow: 0 10px 22px -10px rgba(91, 75, 255, .75);
  transition: transform .12s ease, opacity .15s ease;
}
.ch-verif-caja .ch-verif-enviar:hover:not(:disabled) { transform: translateY(-1px); }
.ch-verif-caja .ch-verif-enviar:disabled { opacity: .5; box-shadow: none; }
.ch-verif-pie { margin-top: 16px; font-size: 13px; color: #8a919f; line-height: 1.6; }
.ch-verif-pie button {
  border: 0; background: none; padding: 0;
  color: #5b4bff; font-weight: 600; font-size: 13px;
  cursor: pointer;
}
.ch-verif-pie button:disabled { color: #b6bbc8; cursor: default; }
.ch-verif-pie .ch-verif-spam { display: block; margin-top: 8px; font-size: 12px; color: #a3a9b6; }

@media (max-width: 480px) {
  .ch-verif-caja { padding: 24px 18px 18px; border-radius: 18px; }
  .ch-verif-caja input.ch-verif-codigo { font-size: 23px; letter-spacing: 8px; text-indent: 8px; height: 54px; }
}
