/* =========================
   LOGIN
   ========================= */

.vth-login-page {
  width: min(94vw, 540px);
  margin: 42px auto 0;
}

.vth-login-card {
  position: relative;
  overflow: hidden;

  width: 100% !important;
  margin: 0 auto !important;
  padding: 28px !important;

  border: 1px solid rgba(190, 132, 255, 0.32) !important;
  border-radius: 24px !important;

  background:
    radial-gradient(circle at 14% 0%, rgba(218, 184, 255, 0.14), transparent 34%),
    radial-gradient(circle at 100% 100%, rgba(125, 44, 255, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(20, 9, 35, 0.96), rgba(5, 3, 10, 0.98)) !important;

  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.56),
    0 0 38px rgba(125, 44, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.vth-login-card::before {
  content: "";
  position: absolute;
  inset: 1px 1px auto 1px;

  height: 44%;
  border-radius: 23px 23px 58px 58px;

  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.07),
      rgba(255, 255, 255, 0.018),
      transparent
    );

  pointer-events: none;
}

.vth-login-card::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;

  height: 2px;
  border-radius: 999px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(125, 44, 255, 0.70),
      rgba(218, 184, 255, 0.92),
      rgba(255, 211, 106, 0.34),
      rgba(218, 184, 255, 0.92),
      rgba(125, 44, 255, 0.70),
      transparent
    );

  box-shadow:
    0 0 18px rgba(125, 44, 255, 0.24);

  pointer-events: none;
}

.vth-login-header,
.vth-login-form,
.vth-login-actions,
.vth-login-help {
  position: relative;
  z-index: 2;
}


/* =========================
   LOGIN HEADER
   ========================= */

.vth-login-header {
  text-align: center;
  margin-bottom: 22px;
}

.vth-login-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 52px;
  height: 52px;
  margin-bottom: 12px;

  border: 1px solid rgba(255, 211, 106, 0.32);
  border-radius: 16px;

  background:
    radial-gradient(circle at 50% 0%, rgba(255, 211, 106, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(34, 10, 62, 0.88), rgba(12, 1, 22, 0.94));

  color: #ffffff;
  font-size: 24px;

  box-shadow:
    0 0 18px rgba(255, 211, 106, 0.16),
    0 0 26px rgba(125, 44, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.vth-login-kicker {
  display: block;
  margin-bottom: 8px;

  color: #ffd36a;
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.16em;
  text-transform: uppercase;

  text-shadow:
    0 0 10px rgba(255, 211, 106, 0.30),
    0 0 18px rgba(125, 44, 255, 0.18);
}

.vth-login-header h2 {
  margin: 0 0 10px !important;

  color: #ffffff !important;
  font-size: 34px !important;
  font-weight: 1000 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em !important;
  text-align: center !important;

  text-shadow:
    0 0 16px rgba(218, 184, 255, 0.28),
    0 0 30px rgba(125, 44, 255, 0.20) !important;
}

.vth-login-header p {
  max-width: 390px;
  margin: 0 auto !important;

  color: rgba(244, 234, 255, 0.74) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
  text-align: center !important;
}


/* =========================
   LOGIN FORM
   ========================= */

.vth-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;

  margin: 0 !important;
}

.vth-login-label {
  color: #e2ccff;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vth-login-input-wrap {
  position: relative;
  width: 100%;
}

.vth-login-input-icon {
  display: none !important;
}


/* =========================
   LOGIN AVATAR
   ========================= */

.vth-login-avatar {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 3;

  width: 30px;
  height: 30px;
  padding: 2px;

  border: 1px solid rgba(190, 132, 255, 0.32);
  border-radius: 10px;

  background:
    linear-gradient(180deg, rgba(32, 14, 56, 0.95), rgba(10, 3, 18, 0.95));

  box-shadow:
    0 0 12px rgba(125, 44, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  overflow: hidden;
  pointer-events: none;
  transform: translateY(-50%);
}

.vth-login-avatar img {
  display: block;

  width: 100%;
  height: 100%;

  border-radius: 7px;

  object-fit: cover;
  image-rendering: pixelated;
}


/* =========================
   LOGIN INPUT
   ========================= */

.vth-login-input,
.vth-login-card input[type="text"] {
  width: 100% !important;
  min-height: 50px !important;
  padding: 0 16px 0 56px !important;

  border: 1px solid rgba(190, 132, 255, 0.28) !important;
  border-radius: 14px !important;

  background:
    linear-gradient(180deg, rgba(16, 7, 28, 0.88), rgba(7, 3, 14, 0.84)) !important;

  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;

  outline: none !important;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18);
}

.vth-login-input::placeholder,
.vth-login-card input[type="text"]::placeholder {
  color: rgba(244, 234, 255, 0.48) !important;
}

.vth-login-input:focus,
.vth-login-card input[type="text"]:focus {
  border-color: rgba(255, 211, 106, 0.62) !important;

  box-shadow:
    0 0 18px rgba(255, 211, 106, 0.18),
    0 0 28px rgba(125, 44, 255, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}


/* =========================
   LOGIN BUTTON
   ========================= */

.vth-login-button,
.vth-login-card .btn-primary {
  position: relative;
  overflow: hidden;

  width: 100% !important;
  min-height: 48px !important;
  padding: 0 18px !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border: 1px solid rgba(218, 184, 255, 0.42) !important;
  border-radius: 14px !important;

  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.16), transparent 38%),
    linear-gradient(
      135deg,
      rgba(103, 45, 225, 0.98) 0%,
      rgba(145, 76, 255, 0.98) 58%,
      rgba(226, 178, 83, 0.96) 100%
    ) !important;

  color: #ffffff !important;

  font-size: 13px !important;
  font-weight: 1000 !important;
  letter-spacing: 0.05em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-transform: uppercase !important;

  box-shadow:
    0 12px 26px rgba(125, 44, 255, 0.28),
    0 0 20px rgba(218, 184, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -10px 18px rgba(0, 0, 0, 0.18) !important;

  cursor: pointer !important;

  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.vth-login-button::before,
.vth-login-card .btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -38%;

  width: 42%;
  height: 100%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, 0.38),
      transparent
    );

  transform: skewX(-22deg);
  transition: left 360ms ease;
  pointer-events: none;
}

.vth-login-button::after,
.vth-login-card .btn-primary::after {
  content: "✦";
  margin-left: 8px;

  color: #fff1b8;
  font-size: 11px;

  text-shadow:
    0 0 8px rgba(255, 211, 106, 0.58),
    0 0 14px rgba(255, 211, 106, 0.24);

  pointer-events: none;
}

.vth-login-button:hover,
.vth-login-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);

  border-color: rgba(255, 211, 106, 0.70) !important;

  box-shadow:
    0 0 20px rgba(255, 211, 106, 0.30),
    0 0 34px rgba(125, 44, 255, 0.34),
    0 16px 34px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -10px 18px rgba(0, 0, 0, 0.22) !important;
}

.vth-login-button:hover::before,
.vth-login-card .btn-primary:hover::before {
  left: 112%;
}


/* =========================
   LOGIN HELP
   ========================= */

.vth-login-help {
  margin: 16px 0 0 !important;

  color: rgba(244, 234, 255, 0.58) !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.45 !important;
  text-align: center !important;
}


/* =========================
   LOGIN POPUP
   ========================= */

.page-login .popup,
.vth-page-login .popup {
  background: rgba(0, 0, 0, 0.72) !important;
}

.page-login .popup-close,
.vth-page-login .popup-close,
.page-login [data-close],
.vth-page-login [data-close] {
  color: #ffffff !important;
  text-shadow:
    0 0 8px rgba(218, 184, 255, 0.30),
    0 0 16px rgba(125, 44, 255, 0.20);
}


/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 520px) {
  .vth-login-page {
    width: 100%;
    max-width: 390px;
    margin-top: 28px;
  }

  .vth-login-card {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .vth-login-header h2 {
    font-size: 30px !important;
  }

  .vth-login-icon {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    font-size: 22px;
  }

  .vth-login-input,
  .vth-login-card input[type="text"] {
    min-height: 48px !important;
    font-size: 13px !important;
  }

  .vth-login-button,
  .vth-login-card .btn-primary {
    min-height: 46px !important;
    font-size: 12px !important;
  }
}

/* =========================
   LOGIN CENTRADO
   ========================= */

.vth-login-card {
  width: 420px !important;
  max-width: 420px !important;
  padding: 28px 24px !important;
}

.vth-login-header {
  margin-bottom: 24px !important;
}

.vth-login-header h2 {
  font-size: 34px !important;
  line-height: 1 !important;
}

.vth-login-header p {
  max-width: 330px !important;
}

.vth-login-label {
  display: block !important;
  width: 100% !important;
  margin-bottom: 4px !important;
  text-align: left !important;
}

.vth-login-input-wrap {
  position: relative !important;
  width: 100% !important;
  height: 52px !important;
}

.vth-login-avatar {
  left: 16px !important;
  top: 50% !important;

  width: 30px !important;
  height: 30px !important;
  padding: 2px !important;

  transform: translateY(-50%) !important;
}

.vth-login-input,
.vth-login-card input[type="text"] {
  height: 52px !important;
  min-height: 52px !important;
  padding-left: 60px !important;
  padding-right: 18px !important;

  display: flex !important;
  align-items: center !important;

  font-size: 14px !important;
  line-height: 52px !important;
}

.vth-login-button,
.vth-login-card .btn-primary {
  margin-top: 10px !important;
  height: 50px !important;
  min-height: 50px !important;
}

.vth-login-help {
  max-width: 330px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}