html,
body {
  height: 100%;
}

.x-login-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  /* centra vertical */
  justify-content: center;
  /* centra horizontal */
}

/* =========================
   LOGIN VIEW / BACKGROUND
========================= */
.x-login-view {
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top center, rgba(20, 70, 140, .18), transparent 35%),
    radial-gradient(circle at 80% 20%, rgba(0, 180, 255, .10), transparent 25%),
    linear-gradient(180deg, #031021 0%, #020b18 45%, #010814 100%);
}

/* Capa partículas pequeñas */
.x-login-view::before,
.x-login-view::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* Partículas pequeñas */
.x-login-view::before {
  opacity: .42;
  background:
    radial-gradient(circle, rgba(80, 220, 255, .85) 0 2px, transparent 3px) 10% 20%/220px 220px,
    radial-gradient(circle, rgba(80, 220, 255, .55) 0 1.5px, transparent 3px) 40% 70%/260px 260px,
    radial-gradient(circle, rgba(80, 220, 255, .70) 0 2px, transparent 3px) 80% 30%/240px 240px,
    radial-gradient(circle, rgba(80, 220, 255, .35) 0 1.2px, transparent 3px) 70% 85%/280px 280px,
    radial-gradient(circle, rgba(80, 220, 255, .60) 0 1.8px, transparent 3px) 25% 90%/300px 300px;
  filter: blur(.2px);
  animation: xFloatA 45s ease-in-out infinite alternate;
}

/* Partículas glow grandes */
.x-login-view::after {
  opacity: .22;
  background:
    radial-gradient(circle, rgba(90, 240, 255, .45) 0 6px, transparent 18px) 15% 35%/520px 520px,
    radial-gradient(circle, rgba(90, 240, 255, .35) 0 5px, transparent 16px) 75% 15%/560px 560px,
    radial-gradient(circle, rgba(90, 240, 255, .30) 0 4px, transparent 14px) 55% 80%/600px 600px;
  filter: blur(1px);
  animation: xFloatB 80s ease-in-out infinite alternate;
  animation-delay: -19s;
}

/* Profundidad extra */
.x-login-view .x-depth {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .16;
  background:
    radial-gradient(circle, rgba(120, 255, 255, .35) 0 1px, transparent 2px) 20% 40%/340px 340px,
    radial-gradient(circle, rgba(120, 255, 255, .25) 0 1px, transparent 2px) 70% 60%/420px 420px;
  animation: xFloatC 140s linear infinite alternate;
}

@keyframes xFloatA {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(0, -120px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes xFloatB {
  0% {
    transform: translate3d(0, 0, 0);
  }

  50% {
    transform: translate3d(-80px, -160px, 0);
  }

  100% {
    transform: translate3d(0, 0, 0);
  }
}

@keyframes xFloatC {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-40px, -60px, 0);
  }
}

/* =========================
   LOGIN VIEW
========================= */
.x-login-view {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

/* Overlay suave encima del fondo animado */
/* .x-login-view::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.12), transparent 28%),
    radial-gradient(circle at 80% 18%, rgba(99,102,241,.12), transparent 24%),
    radial-gradient(circle at 50% 85%, rgba(14,165,233,.08), transparent 30%),
    linear-gradient(180deg, rgba(3,8,20,.35), rgba(3,8,20,.62));
  pointer-events: none;
  z-index: 0;
} */

.x-login-view .mask,
.x-login-view .container,
.x-login-view .row,
.x-login-view .col-12 {
  position: relative;
  z-index: 1;
}

/* =========================
   CARD
========================= */
.x-login-card {
  position: relative;
  width: 100%;
  max-width: 490px;
  border-radius: 30px;
  padding: 34px 30px 28px;
  overflow: hidden;

  background:
    linear-gradient(180deg, rgba(11, 18, 34, .92), rgba(8, 13, 27, .88));
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .45),
    inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.x-login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, .16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(99, 102, 241, .14), transparent 32%);
  pointer-events: none;
}

/* =========================
   LOGO
========================= */
.x-logo-outside {
  margin-bottom: 16px;
  animation: xFloatLogo 4s ease-in-out infinite;
}

.x-logo-outside img,
.x-logo-inside img {
  max-width: 350px;
}

.x-logo-inside {
  display: none;
  justify-content: center;
  margin-bottom: 18px;
}

@keyframes xFloatLogo {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

/* =========================
   WRAP
========================= */
.x-vision-wrap {
  position: relative;
  z-index: 2;
}

/* =========================
   HEAD
========================= */
.x-login-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.x-login-head__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(99, 102, 241, .18));
  border: 1px solid rgba(255, 255, 255, .09);
  color: #dbeafe;
  font-size: 18px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, .18);
}

.x-login-head h2 {
  margin: 0;
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.x-login-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .65);
  font-size: .94rem;
}

/* =========================
   FORM
========================= */
.x-login-form {
  position: relative;
  z-index: 2;
}

.x-field-wrap {
  margin-bottom: 16px;
}

.x-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .78);
  font-size: .88rem;
  font-weight: 600;
}

.x-field {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: .25s ease;
  overflow: hidden;
}

.x-field:hover {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .06);
}

.x-field:focus-within {
  border-color: rgba(96, 165, 250, .85);
  box-shadow:
    0 0 0 4px rgba(59, 130, 246, .14),
    0 14px 30px rgba(37, 99, 235, .15);
  background: rgba(255, 255, 255, .07);
}

.x-field-ico {
  width: 52px;
  min-width: 52px;
  text-align: center;
  color: rgba(191, 219, 254, .92);
  font-size: 15px;
}

.x-field input {
  flex: 1;
  height: 58px;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: .98rem;
  padding: 0 14px 0 0;
}

.x-field input::placeholder {
  color: rgba(255, 255, 255, .38);
}

/* =========================
   PASS BUTTON
========================= */
.x-eye {
  width: 48px;
  height: 48px;
  margin-right: 5px;
  border: 0;
  outline: none;
  border-radius: 14px;
  background: transparent;
  color: rgba(255, 255, 255, .62);
  transition: .25s ease;
}

.x-eye:hover {
  background: rgba(255, 255, 255, .07);
  color: #fff;
}

/* =========================
   OPTIONS
========================= */
.x-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 20px;
  flex-wrap: wrap;
}

.x-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: .9rem;
}

.x-check input {
  accent-color: #3b82f6;
}

.x-forgot a {
  color: #93c5fd;
  font-size: .9rem;
  text-decoration: none;
  transition: .2s ease;
}

.x-forgot a:hover {
  color: #dbeafe;
  text-decoration: underline;
}

/* =========================
   BUTTON
========================= */
.x-btn-glow {
  position: relative;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 18px;
  font-size: .98rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  box-shadow:
    0 6px 40px rgba(37, 99, 235, .32),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
  overflow: hidden;
}

.x-btn-glow:hover {
  transform: translateY(-1px);
  box-shadow:
    0 22px 46px rgba(37, 99, 235, .38),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  filter: brightness(1.03);
}

.x-btn-glow:disabled {
  cursor: not-allowed;
  opacity: .98;
}

.x-btn-text,
.x-btn-loader,
.x-btn-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .28s ease;
}

.x-btn-loader,
.x-btn-check {
  opacity: 0;
  pointer-events: none;
}

.x-btn-loader::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, .28);
  border-top-color: #fff;
  animation: xSpin .75s linear infinite;
}

@keyframes xSpin {
  to {
    transform: rotate(360deg);
  }
}

.x-btn-glow.is-loading .x-btn-text {
  opacity: 0;
  transform: translateY(-6px);
}

.x-btn-glow.is-loading .x-btn-loader {
  opacity: 1;
}

.x-btn-glow.is-done .x-btn-text,
.x-btn-glow.is-done .x-btn-loader {
  opacity: 0;
}

.x-btn-glow.is-done .x-btn-check {
  opacity: 1;
}

/* =========================
   DIVIDER
========================= */
.x-divider {
  position: relative;
  text-align: center;
  margin: 22px 0 18px;
}

.x-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

.x-divider span {
  position: relative;
  z-index: 1;
  display: inline-block;
  padding: 0 12px;
  background: rgba(10, 16, 30, .75);
  color: rgba(255, 255, 255, .45);
  font-size: .83rem;
}

/* =========================
   SOCIAL
========================= */
.x-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.x-social-btn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: .25s ease;
}

.x-social-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .16);
}

/* =========================
   SHAKE ERROR
========================= */
.x-shake {
  animation: xShake .45s ease;
}

@keyframes xShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-7px);
  }

  40% {
    transform: translateX(7px);
  }

  60% {
    transform: translateX(-5px);
  }

  80% {
    transform: translateX(5px);
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 576px) {
  .x-login-card {
    max-width: 100%;
    padding: 24px 18px 22px;
    border-radius: 24px;
  }

  .x-logo-outside {
    display: none;
  }

  .x-logo-inside {
    display: flex;
  }

  .x-login-head h2 {
    font-size: 1.28rem;
  }

  .x-login-head p {
    font-size: .88rem;
  }

  .x-login-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

.x-login-view::before {
  opacity: .42;
}

.x-login-view::after {
  opacity: .22;
}

.x-login-view .x-depth {
  opacity: .16;
}

.x-login-note {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .5);
  font-size: .85rem;
}

.x-login-card::after {
  content: "";
  position: absolute;
  top: -30%;
  left: -20%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(255, 255, 255, .10), transparent 70%);
  animation: xGlowMove 7s ease-in-out infinite;
  pointer-events: none;
}

@keyframes xGlowMove {

  0%,
  100% {
    transform: translate(0, 0);
    opacity: .55;
  }

  50% {
    transform: translate(40px, 25px);
    opacity: .2;
  }
}

.x-login-card {
  max-width: 520px;
}

/* =========================
   FIX AUTOFILL CHROME
========================= */
.x-field input:-webkit-autofill,
.x-field input:-webkit-autofill:hover,
.x-field input:-webkit-autofill:focus,
.x-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(17, 24, 39, .92) inset !important;
  box-shadow: 0 0 0 1000px rgba(17, 24, 39, .92) inset !important;
  transition: background-color 9999s ease-in-out 0s !important;
  border-radius: 1px !important;
}

.x-field input {
  padding-left: 10px;
  /* espacio después del ícono */
  padding-right: 10px;
  /* espacio antes del ojo */
}

.x-btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .25s ease;
}

/* Mantener sistema actual */
.x-btn-glow.is-loading .x-btn-content {
  opacity: 0;
  transform: translateY(-6px);
}

.x-btn-glow.is-done .x-btn-content {
  opacity: 0;
}

.x-btn-content i {
  transition: transform .25s ease;
}

/* Hover animado */
.x-btn-glow:hover .x-btn-content i {
  transform: translateX(4px);
}






/* =========================
   RECOVER PASSWORD
========================= */
.x-recover-view .x-login-card {
  max-width: 540px;
}

.x-recover-card {
  position: relative;
  overflow: hidden;
}

.x-recover-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.x-recover-head__icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(99, 102, 241, .18));
  border: 1px solid rgba(255, 255, 255, .08);
  color: #dbeafe;
  font-size: 18px;
  box-shadow: 0 12px 28px rgba(37, 99, 235, .18);
}

.x-recover-head__text h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.x-recover-head__text p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: .96rem;
  line-height: 1.65;
  max-width: 400px;
}

.x-recover-form {
  position: relative;
  z-index: 2;
}

.x-recover-form .x-field-wrap {
  margin-bottom: 18px;
}

.x-recover-form .x-field {
  min-height: 60px;
  border-radius: 18px;
}

.x-recover-form .x-field input {
  padding: 0 14px 0 8px;
}

.x-btn-glow--recover {
  margin-top: 2px;
}

.x-btn-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: .28s ease;
}

.x-btn-content i {
  transition: transform .25s ease;
}

.x-btn-glow:hover .x-btn-content i {
  transform: translateX(3px);
}

.x-btn-glow.is-loading .x-btn-content {
  opacity: 0;
  transform: translateY(-6px);
}

.x-btn-glow.is-done .x-btn-content {
  opacity: 0;
}

.x-recover-note {
  margin-top: 14px;
  text-align: center;
  color: rgba(255, 255, 255, .48);
  font-size: .86rem;
  line-height: 1.5;
}

.x-recover-links {
  margin-top: 18px;
  padding-top: 12px;
}

.x-back-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff4f9a;
  text-decoration: none;
  font-weight: 700;
  transition: .22s ease;
}

.x-back-login:hover {
  color: #ff7db6;
  transform: translateX(-2px);
}

@media (max-width: 576px) {
  .x-recover-head {
    gap: 12px;
    margin-bottom: 20px;
  }

  .x-recover-head__icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    font-size: 16px;
  }

  .x-recover-head__text h2 {
    font-size: 1.22rem;
  }

  .x-recover-head__text p {
    font-size: .9rem;
  }
}

.x-back-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, .55);
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: .2s ease;
}

.x-back-login i {
  font-size: 13px;
  opacity: .7;
}

.x-back-login:hover {
  color: #fff;
}

.x-back-login:hover i {
  transform: translateX(-3px);
}

.x-field {
  background: rgba(255, 255, 255, .06);
}

.x-btn-glow:hover i {
  transform: translateX(6px);
}

.x-login-note {
  color: rgba(255, 255, 255, .45);
  font-size: .85rem;
}

.x-login-card {
  animation: fadeScale .5s ease;
}

@keyframes fadeScale {
  0% {
    opacity: 0;
    transform: scale(.96) translateY(10px);
  }

  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


.x-login-logo {
  filter: drop-shadow(0 10px 25px rgba(34, 197, 94, .25));
}




.x-app-transition {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 24, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: .35s ease;
  z-index: 9999;
}

.x-app-transition.is-active {
  opacity: 1;
  visibility: visible;
}

.x-ios-loader {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .12);
  border-top-color: rgba(255, 255, 255, .95);
  animation: xSpin .8s linear infinite;
  box-shadow: 0 0 30px rgba(59, 130, 246, .22);
}

.x-login-card.is-leaving {
  transform: scale(.985);
  opacity: .88;
  filter: blur(2px);
  transition: .35s ease;
}


.x-divider {
  height: 1px;
  margin: 22px 0;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .12),
      transparent);
}

.x-btn-login {
  position: relative;
  overflow: hidden;
}

.x-btn-login::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, .25),
      transparent);
  opacity: 0;
  transition: .3s;
}

.x-btn-login:hover::after {
  opacity: 1;
  transform: translateX(100%);
}


.x-support-divider {
  position: relative;
  margin: 26px 0 18px;
  text-align: center;
}

.x-support-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent,
      rgba(255, 255, 255, .10),
      transparent);
}

.x-support-divider span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  height: 28px;
  border-radius: 999px;
  background: rgba(8, 14, 28, .92);
  color: rgba(255, 255, 255, .58);
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.x-support-note {
  margin-top: -4px;
  margin-bottom: 16px;
  text-align: center;
  color: rgba(255, 255, 255, .42);
  font-size: .82rem;
}

.x-auth-switch {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, .56);
  font-size: .92rem;
}

.x-auth-switch__link {
  color: #93c5fd;
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
  transition: .2s ease;
}

.x-auth-switch__link:hover {
  color: #fff;
  text-decoration: underline;
}

/* =========================
   CHECKBOX PRO DARK
========================= */

.x-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

/* ocultamos el checkbox real */
.x-check input {
  display: none;
}

/* caja visual */
.x-check__box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .05);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

/* hover */
.x-check:hover .x-check__box {
  border-color: rgba(255, 255, 255, .45);
}

/* checked */
.x-check input:checked+.x-check__box {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  border-color: rgba(96, 165, 250, .6);
  box-shadow: 0 0 10px rgba(59, 130, 246, .35);
}

/* check icon */
.x-check input:checked+.x-check__box::after {
  content: "✓";
  font-size: 12px;
  color: #fff;
  font-weight: bold;
}

/* texto */
.x-check__label {
  font-size: .9rem;
  color: rgba(255, 255, 255, .65);
  font-weight: 600;
}

.x-security-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

.x-security-note i {
  color: #60a5fa;
}

.x-turnstile-wrap {
  width: 100%;
  margin: 0 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  /* border-radius: 14px; */
}

/* =========================
   TURNSTILE FLEXIBLE CLEAN
========================= */

/* .x-turnstile-wrap {
  width: 100%;
  margin: 0 0 18px;
  display: block;
  overflow: hidden;
  border-radius: 14px;
} */

.x-turnstile-wrap .cf-turnstile {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  transform: none !important;
}

.x-turnstile-wrap iframe {
  width: 100% !important;
  max-width: 100% !important;
  transform: none !important;
}

.x-security-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 10px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

.x-security-note i {
  color: #60a5fa;
}