body:has(.dotpsa-login-shell) {
  background: #0d0f16;
}

.dotpsa-login-shell {
  position: relative;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 26% 42%, rgba(255, 208, 87, 0.24), transparent 25%),
    radial-gradient(circle at 76% 18%, rgba(78, 115, 223, 0.22), transparent 26%),
    linear-gradient(135deg, rgba(12, 14, 21, 0.98), rgba(30, 36, 58, 0.94)),
    url("/assets/keyboard-Bpp-f_BM.jpg") center/cover no-repeat;
}

.dotpsa-login-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 18, 24, 0.64), rgba(17, 18, 24, 0.26)),
    radial-gradient(circle at 30% 38%, rgba(255, 232, 159, 0.24), transparent 30%);
  pointer-events: none;
}

.dotpsa-login-shell > .row {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.dotpsa-login-card {
  border-radius: 12px !important;
  overflow: hidden;
  background: rgba(17, 19, 28, 0.78) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 32px 110px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: blur(18px);
}

.dotpsa-login-visual {
  position: relative;
  min-height: 560px;
  background:
    radial-gradient(circle at 48% 38%, rgba(255, 213, 101, 0.24), transparent 32%),
    linear-gradient(145deg, #11131d 0%, #191c27 56%, #11131d 100%);
  overflow: hidden;
}

.dotpsa-login-visual img {
  filter: saturate(0.96) contrast(1.04);
}

.dotpsa-login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 44% 44%, rgba(255, 221, 128, 0.22), transparent 34%),
    linear-gradient(180deg, rgba(17, 18, 24, 0.18), rgba(17, 18, 24, 0.82));
  pointer-events: none;
}

.dotpsa-login-copy {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 32px;
  color: #fff;
  pointer-events: none;
}

.dotpsa-login-copy h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.dotpsa-login-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 15px;
  line-height: 1.55;
}

.dotpsa-login-panel {
  min-height: 560px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 252, 0.96));
  position: relative;
  overflow: hidden;
}

.dotpsa-login-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(78, 115, 223, 0.08);
  border-radius: 12px;
  pointer-events: none;
}

.dotpsa-login-panel > .p-5 {
  width: 100%;
  padding: 56px !important;
}

.dotpsa-login-panel .text-center img {
  height: 66px !important;
  object-fit: contain;
}

.dotpsa-login-panel h1 {
  margin-top: 12px;
  margin-bottom: 8px !important;
  font-size: 26px !important;
  font-weight: 800;
  color: #111827 !important;
}

.dotpsa-login-subtitle {
  margin: 0 0 28px;
  color: #6b7280;
  font-size: 14px;
}

.dotpsa-login-lamp-lock {
  display: grid;
  place-items: center;
  gap: 18px;
  margin: 0 auto 22px;
  transition: transform 0.45s ease, opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease;
  max-height: 290px;
  position: relative;
  z-index: 3;
}

.dotpsa-login-lamp-lock.is-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  max-height: none;
  align-content: center;
  transform: translateY(-22px);
}

.dotpsa-login-unlocked .dotpsa-login-lamp-lock {
  opacity: 0.16;
  transform: translateY(-22px) scale(0.98);
  pointer-events: none;
}

.dotpsa-login-unlocked .dotpsa-login-lamp-lock:not(.is-visual) {
  max-height: 0;
  margin-bottom: 0;
}

.dotpsa-lamp-stage {
  position: relative;
  width: 260px;
  height: 250px;
  display: grid;
  place-items: center;
}

.dotpsa-lamp-glow {
  position: absolute;
  inset: -60px;
  opacity: 0.42;
  background:
    radial-gradient(circle at 47% 40%, rgba(255, 247, 215, 0.96), rgba(255, 214, 97, 0.34) 32%, rgba(255, 214, 97, 0.12) 52%, transparent 72%);
  filter: blur(7px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.dotpsa-login-unlocked .dotpsa-lamp-glow {
  opacity: 0.86;
  transform: scale(1.08);
}

.dotpsa-lamp {
  position: relative;
  width: 218px;
  height: 232px;
  filter: drop-shadow(0 22px 35px rgba(0, 0, 0, 0.34));
}

.dotpsa-lamp-shade {
  position: absolute;
  top: 28px;
  left: 19px;
  width: 180px;
  height: 66px;
  border-radius: 120px 120px 20px 20px;
  background:
    linear-gradient(180deg, #fffdf2 0%, #fff7d4 52%, #f2d47c 100%);
  box-shadow:
    inset 0 -10px 18px rgba(197, 149, 45, 0.16),
    0 20px 44px rgba(255, 218, 112, 0.34);
}

.dotpsa-lamp-shade::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: -3px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
}

.dotpsa-lamp-stem {
  position: absolute;
  top: 90px;
  left: 101px;
  width: 16px;
  height: 100px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf2, #d7d9df);
  box-shadow: inset -4px 0 8px rgba(0, 0, 0, 0.08);
}

.dotpsa-lamp-base {
  position: absolute;
  left: 53px;
  bottom: 20px;
  width: 112px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf2, #d8d9dd);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.dotpsa-lamp-pull {
  --pull: 0px;
  position: absolute;
  top: 85px;
  left: 145px;
  width: 46px;
  height: 126px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: grab;
  touch-action: none;
  transform: translateY(var(--pull));
  transition: transform 0.18s ease;
}

.dotpsa-lamp-pull:active {
  cursor: grabbing;
}

.dotpsa-lamp-pull::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  width: 2px;
  height: 92px;
  background: linear-gradient(180deg, rgba(255, 250, 224, 0.98), rgba(236, 179, 91, 0.92));
  box-shadow: 0 0 16px rgba(255, 228, 165, 0.58);
}

.dotpsa-lamp-pull span {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fff1b5, transparent 28%),
    linear-gradient(180deg, #f8c16b, #b9782d);
  box-shadow: 0 10px 20px rgba(200, 137, 51, 0.42);
}

.dotpsa-login-unlocked .dotpsa-lamp-pull {
  transform: translateY(46px);
}

.dotpsa-lamp-message {
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.dotpsa-lamp-message strong {
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.dotpsa-lamp-message span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dotpsa-login-dot-lock {
  display: grid;
  place-items: center;
  gap: 18px;
  margin: 0 auto 22px;
  transition: transform 0.45s ease, opacity 0.45s ease, max-height 0.45s ease, margin 0.45s ease;
  max-height: 320px;
  position: relative;
  z-index: 3;
}

.dotpsa-login-dot-lock.is-visual {
  position: absolute;
  inset: 0;
  margin: 0;
  max-height: none;
  align-content: center;
  transform: translateY(-14px);
}

.dotpsa-login-unlocked .dotpsa-login-dot-lock {
  opacity: 0.2;
  transform: translateY(-24px) scale(0.98);
  pointer-events: none;
}

.dotpsa-login-unlocked .dotpsa-login-dot-lock:not(.is-visual) {
  max-height: 0;
  margin-bottom: 0;
}

.dotpsa-dot-stage {
  --dot-progress: 0;
  position: relative;
  width: min(440px, calc(100vw - 72px));
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 30px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.05)),
    radial-gradient(circle at calc(18% + (var(--dot-progress) * 64%)) 58%, rgba(239, 68, 68, 0.36), transparent 28%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 26px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
  backdrop-filter: blur(18px);
}

.dotpsa-dot-stage::before {
  content: "";
  position: absolute;
  inset: -42%;
  background:
    conic-gradient(from 120deg, transparent, rgba(255, 255, 255, 0.18), transparent 30%),
    radial-gradient(circle, rgba(239, 68, 68, 0.2), transparent 44%);
  transform: rotate(calc(var(--dot-progress) * 46deg));
  opacity: 0.72;
  pointer-events: none;
}

.dotpsa-dot-orbit {
  position: absolute;
  width: 180px;
  height: 180px;
  left: calc(14% + (var(--dot-progress) * 58%));
  top: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.32), transparent 17%),
    radial-gradient(circle, rgba(239, 68, 68, 0.34), transparent 58%);
  filter: blur(8px);
  transform: translateX(-50%) scale(calc(0.8 + (var(--dot-progress) * 0.28)));
  transition: left 0.12s ease, transform 0.12s ease;
  pointer-events: none;
}

.dotpsa-dotline-word {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 1px;
  min-height: 72px;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(255, 255, 255, calc(0.28 + (var(--dot-progress) * 0.72)));
  white-space: nowrap;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18),
    0 calc(var(--dot-progress) * 14px) 36px rgba(239, 68, 68, 0.34);
}

.dotpsa-dotline-word span {
  display: inline-block;
  transform: translateY(calc((1 - var(--dot-progress)) * 14px));
  opacity: calc(0.18 + (var(--dot-progress) * 0.82));
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.dotpsa-dotline-word .dotpsa-word-dot {
  position: relative;
  color: #fff;
}

.dotpsa-dotline-word .dotpsa-word-dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ef233c;
  box-shadow:
    0 0 0 8px rgba(239, 35, 60, 0.18),
    0 0 28px rgba(239, 35, 60, 0.82);
  transform: translateX(-50%) scale(calc(0.78 + (var(--dot-progress) * 0.35)));
}

.dotpsa-dot-track {
  position: relative;
  z-index: 3;
  height: 56px;
  margin: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.24);
}

.dotpsa-dot-track::before {
  content: "Drag the dot";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.64);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}

.dotpsa-dot-track-fill {
  position: absolute;
  left: 8px;
  top: 50%;
  width: 0;
  max-width: calc(100% - 16px);
  height: 8px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #ef233c, #ffb703 58%, #ffffff);
  box-shadow:
    0 0 16px rgba(239, 35, 60, 0.52),
    0 0 30px rgba(255, 183, 3, 0.24);
  transform: translateY(-50%);
  transition: width 0.12s ease;
}

.dotpsa-dot-handle {
  position: absolute;
  left: 0;
  top: 50%;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff, transparent 16%),
    linear-gradient(145deg, #ff3149, #b90d24);
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.32),
    0 0 0 10px rgba(239, 35, 60, 0.14),
    0 0 34px rgba(239, 35, 60, 0.62);
  transform: translate(-50%, -50%);
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  transition: left 0.12s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.dotpsa-dot-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.05);
}

.dotpsa-dot-handle span {
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.92;
}

.dotpsa-dot-caption {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 4px;
  text-align: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.dotpsa-dot-caption strong {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.dotpsa-dot-caption span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.dotpsa-login-dot-lock.is-complete .dotpsa-dot-track::before {
  content: "Dotline unlocked";
  color: rgba(255, 255, 255, 0.86);
}

.dotpsa-form-lock-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 18px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff8e6;
  color: #815b13;
  border: 1px solid #f5d58b;
  font-weight: 700;
  font-size: 13px;
  transition: opacity 0.35s ease, transform 0.35s ease, max-height 0.35s ease, margin 0.35s ease, padding 0.35s ease;
}

.dotpsa-form-lock-hint i {
  color: #d89a20;
}

.dotpsa-login-unlocked .dotpsa-form-lock-hint {
  opacity: 0;
  transform: translateY(-8px);
  max-height: 0;
  margin: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.dotpsa-login-panel form.user {
  transition: opacity 0.48s ease, transform 0.48s ease, max-height 0.48s ease;
  max-height: 420px;
}

.dotpsa-login-locked .dotpsa-login-panel form.user {
  opacity: 0;
  transform: translateY(14px);
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
}

.dotpsa-login-unlocked .dotpsa-login-panel form.user {
  opacity: 1;
  transform: translateY(0);
}

.dotpsa-login-panel .form-group {
  margin-bottom: 18px;
}

.dotpsa-login-panel .form-control-user {
  height: 52px;
  border-radius: 8px !important;
  border: 1px solid #d8deea;
  padding: 14px 18px !important;
  font-size: 15px;
  background: #f9fafc;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.dotpsa-login-panel .form-control-user:focus {
  background: #fff;
  border-color: #4e73df;
  box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.16);
}

.dotpsa-password-wrap {
  position: relative;
}

.dotpsa-password-wrap .form-control-user {
  padding-right: 54px !important;
}

.dotpsa-password-toggle {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #4e73df;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.dotpsa-login-panel .btn-user {
  height: 50px;
  border-radius: 8px !important;
  font-weight: 700;
  letter-spacing: 0;
  background: linear-gradient(135deg, #4e73df, #3154c7) !important;
  border: 0;
  box-shadow: 0 12px 24px rgba(78, 115, 223, 0.28);
}

.dotpsa-login-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  color: #6b7280;
  font-size: 12px;
}

.dotpsa-login-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dotpsa-login-meta i {
  color: #1cc88a;
}

@media (max-width: 991.98px) {
  .dotpsa-login-shell {
    padding: 24px 12px;
  }

  .dotpsa-login-panel {
    min-height: auto;
  }

  .dotpsa-login-panel > .p-5 {
    padding: 34px 24px !important;
  }

  .dotpsa-login-lamp-lock.is-visual {
    position: relative;
    min-height: 310px;
  }

  .dotpsa-login-dot-lock.is-visual {
    position: relative;
    min-height: 330px;
  }

  .dotpsa-login-dot-lock {
    width: 100%;
    max-height: 360px;
    margin-bottom: 18px;
  }

  .dotpsa-dot-stage {
    width: min(100%, 390px);
    min-height: 238px;
    padding: 24px 18px;
  }

  .dotpsa-dotline-word {
    font-size: clamp(34px, 13vw, 52px);
  }

  .dotpsa-dot-track {
    margin: 0 26px;
    height: 58px;
  }

  .dotpsa-dot-caption {
    border-radius: 14px;
  }
}
