:root {
  color-scheme: dark;
  --auth-bg: #07101b;
  --auth-panel: #0a1421;
  --auth-panel-soft: #0d1928;
  --auth-input: #07121e;
  --auth-text: #f2f7ff;
  --auth-copy: #c6d5e8;
  --auth-muted: #8fa4bd;
  --auth-line: rgba(176, 202, 235, 0.13);
  --auth-accent: #66ffe6;
  --auth-accent-rgb: 102, 255, 230;
  --auth-indigo: #7185ff;
  --auth-danger: #ff738a;
  --auth-danger-rgb: 255, 115, 138;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--auth-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

button,
input {
  font: inherit;
}

.vdp-auth-page {
  position: relative;
  overflow-x: hidden;
  color: var(--auth-text);
  background:
    radial-gradient(760px 420px at 12% 8%, rgba(0, 214, 200, 0.075), transparent 72%),
    radial-gradient(820px 440px at 92% 92%, rgba(83, 109, 254, 0.075), transparent 72%),
    var(--auth-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vdp-auth-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vdp-auth-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144, 174, 215, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144, 174, 215, 0.032) 1px, transparent 1px);
  background-size: 68px 68px;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 92%);
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.vdp-auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.17;
}

.vdp-auth-glow--teal {
  top: -180px;
  left: -120px;
  width: 470px;
  height: 470px;
  background: var(--auth-accent);
}

.vdp-auth-glow--indigo {
  right: -160px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  background: var(--auth-indigo);
}

.vdp-auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  padding: clamp(20px, 4vw, 54px);
  place-items: center;
}

.vdp-auth-frame {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
  width: min(100%, 1040px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--auth-line);
  border-radius: 26px;
  background: rgba(7, 16, 27, 0.88);
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.4);
}

.vdp-auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4vw, 48px);
  overflow: hidden;
  border-right: 1px solid var(--auth-line);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--auth-accent-rgb), 0.1), transparent 38%),
    radial-gradient(circle at 100% 100%, rgba(113, 133, 255, 0.1), transparent 44%),
    linear-gradient(145deg, #0a1623, #09131f);
}

.vdp-auth-brand::after {
  content: "";
  position: absolute;
  right: -150px;
  bottom: -170px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 52px rgba(113, 133, 255, 0.018),
    0 0 0 104px rgba(var(--auth-accent-rgb), 0.012);
  pointer-events: none;
}

.vdp-auth-brand-kicker,
.vdp-auth-eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  color: #8cf6e8;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vdp-auth-symbol-stage {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 238px);
  aspect-ratio: 1;
  margin: auto;
  padding: 27px;
  place-items: center;
  border: 1px solid rgba(176, 202, 235, 0.14);
  border-radius: 34px;
  background:
    radial-gradient(circle at 32% 22%, rgba(var(--auth-accent-rgb), 0.13), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.vdp-auth-symbol-stage::before,
.vdp-auth-symbol-stage::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  pointer-events: none;
}

.vdp-auth-symbol-stage::before {
  top: -6px;
  left: -6px;
  border-top: 2px solid rgba(var(--auth-accent-rgb), 0.72);
  border-left: 2px solid rgba(var(--auth-accent-rgb), 0.72);
  border-radius: 10px 0 0;
}

.vdp-auth-symbol-stage::after {
  right: -6px;
  bottom: -6px;
  border-right: 2px solid rgba(113, 133, 255, 0.72);
  border-bottom: 2px solid rgba(113, 133, 255, 0.72);
  border-radius: 0 0 10px;
}

.vdp-auth-symbol-tile {
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  padding: 24px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(5, 17, 28, 0.05);
}

.vdp-auth-symbol-tile img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.vdp-auth-brand-caption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}

.vdp-auth-brand-caption strong {
  color: #edf5ff;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.vdp-auth-brand-caption span {
  margin-top: 7px;
  color: #8fa5bd;
  font-size: 0.61rem;
  font-weight: 820;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.vdp-auth-panel {
  display: grid;
  min-width: 0;
  padding: clamp(34px, 6vw, 72px);
  place-items: center;
  background:
    radial-gradient(circle at 100% 0%, rgba(113, 133, 255, 0.07), transparent 37%),
    var(--auth-panel);
}

.vdp-auth-panel-inner {
  width: min(100%, 430px);
}

.vdp-auth-header {
  min-width: 0;
}

.vdp-auth-panel-icon {
  display: grid;
  width: 47px;
  height: 47px;
  margin-bottom: 23px;
  place-items: center;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.23);
  border-radius: 13px;
  color: var(--auth-accent);
  background: rgba(var(--auth-accent-rgb), 0.06);
  font-size: 1.25rem;
}

.vdp-auth-title {
  margin: 11px 0 0;
  color: var(--auth-text);
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 620;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.vdp-auth-subtitle {
  margin: 13px 0 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
  line-height: 1.68;
}

.vdp-auth-content {
  margin-top: 30px;
}

.vdp-auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 19px;
  padding: 13px 14px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  font-size: 0.79rem;
  line-height: 1.58;
}

.vdp-auth-alert > i {
  flex: 0 0 auto;
  margin-top: 1px;
  font-size: 1.05rem;
}

.vdp-auth-alert--success {
  color: #c2f9ef;
  border-color: rgba(var(--auth-accent-rgb), 0.23);
  background: rgba(var(--auth-accent-rgb), 0.055);
}

.vdp-auth-alert--success > i {
  color: var(--auth-accent);
}

.vdp-auth-alert--error {
  color: #ffd2d9;
  border-color: rgba(var(--auth-danger-rgb), 0.25);
  background: rgba(var(--auth-danger-rgb), 0.06);
}

.vdp-auth-alert--error > i {
  color: var(--auth-danger);
}

.vdp-auth-alert ul {
  margin: 0;
  padding-left: 17px;
}

.vdp-auth-alert li + li {
  margin-top: 4px;
}

.vdp-auth-form-group {
  margin-bottom: 20px;
}

.vdp-auth-label {
  display: block;
  margin-bottom: 8px;
  color: #d8e4f2;
  font-size: 0.78rem;
  font-weight: 720;
}

.vdp-auth-input-wrap {
  position: relative;
}

.vdp-auth-input-wrap > i {
  position: absolute;
  top: 50%;
  left: 15px;
  color: #70869f;
  font-size: 1.02rem;
  pointer-events: none;
  transform: translateY(-50%);
  transition: color 160ms ease;
}

.vdp-auth-input {
  width: 100%;
  height: 51px;
  padding: 0 15px 0 44px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  outline: 0;
  color: var(--auth-text);
  background: var(--auth-input);
  font-size: 0.88rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.vdp-auth-input::placeholder {
  color: #5f738a;
}

.vdp-auth-input:hover {
  border-color: rgba(176, 202, 235, 0.22);
}

.vdp-auth-input:focus {
  border-color: rgba(var(--auth-accent-rgb), 0.55);
  background: #081623;
  box-shadow: 0 0 0 4px rgba(var(--auth-accent-rgb), 0.08);
}

.vdp-auth-input-wrap:focus-within > i {
  color: var(--auth-accent);
}

.vdp-auth-input.is-invalid {
  border-color: rgba(var(--auth-danger-rgb), 0.55);
}

.vdp-auth-input.is-invalid:focus {
  box-shadow: 0 0 0 4px rgba(var(--auth-danger-rgb), 0.09);
}

.vdp-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.68);
  border-radius: 12px;
  color: #041713;
  background: linear-gradient(135deg, #66ffe6, #35dec5);
  box-shadow: 0 13px 30px rgba(0, 214, 200, 0.14);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 840;
  line-height: 1.2;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.vdp-auth-button:hover {
  background: linear-gradient(135deg, #92ffef, #55e9d2);
  box-shadow: 0 17px 36px rgba(0, 214, 200, 0.2);
  transform: translateY(-2px);
}

.vdp-auth-button:active {
  transform: translateY(0);
}

.vdp-auth-button:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 4px;
}

.vdp-auth-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.vdp-auth-button--secondary {
  border-color: var(--auth-line);
  color: #b5c5d8;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.vdp-auth-button--secondary:hover {
  border-color: rgba(176, 202, 235, 0.22);
  color: var(--auth-text);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.vdp-auth-spinner {
  animation: vdp-auth-spin 750ms linear infinite;
}

.vdp-auth-state {
  text-align: center;
}

.vdp-auth-state-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(var(--auth-accent-rgb), 0.24);
  border-radius: 19px;
  color: var(--auth-accent);
  background: rgba(var(--auth-accent-rgb), 0.06);
  box-shadow: 0 15px 34px rgba(0, 214, 200, 0.08);
  font-size: 1.7rem;
}

.vdp-auth-state-icon--confirm {
  color: #9aabff;
  border-color: rgba(113, 133, 255, 0.25);
  background: rgba(113, 133, 255, 0.07);
  box-shadow: 0 15px 34px rgba(83, 109, 254, 0.08);
}

.vdp-auth-state-icon--success {
  color: var(--auth-accent);
  border-color: rgba(var(--auth-accent-rgb), 0.24);
  background: rgba(var(--auth-accent-rgb), 0.06);
}

.vdp-auth-state-icon--error {
  color: var(--auth-danger);
  border-color: rgba(var(--auth-danger-rgb), 0.25);
  background: rgba(var(--auth-danger-rgb), 0.065);
  box-shadow: 0 15px 34px rgba(var(--auth-danger-rgb), 0.07);
}

.vdp-auth-expiry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 0 23px;
  padding: 10px 13px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  color: #91a6be;
  background: rgba(255, 255, 255, 0.018);
  font-size: 0.72rem;
  line-height: 1.5;
}

.vdp-auth-expiry i {
  flex: 0 0 auto;
  color: #9aabff;
  font-size: 0.93rem;
}

.vdp-auth-expiry time {
  color: #d5e1ef;
  font-weight: 720;
}

.vdp-auth-state-message {
  margin: 0 0 24px;
  color: #a9bbcf;
  font-size: 0.87rem;
  line-height: 1.68;
}

.vdp-auth-actions {
  display: grid;
  gap: 10px;
}

.vdp-auth-actions form {
  margin: 0;
}

.vdp-auth-actions .vdp-auth-button {
  margin-top: 0;
  text-decoration: none;
}

.vdp-auth-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--auth-line);
  color: #61768e;
  font-size: 0.65rem;
  line-height: 1.5;
}

.vdp-auth-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8fa4bd;
  text-decoration: none;
  transition: color 160ms ease;
}

.vdp-auth-footer a:hover {
  color: var(--auth-accent);
}

.vdp-auth-symbol-stage:focus-visible,
.vdp-auth-footer a:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 4px;
  border-radius: 4px;
}

@keyframes vdp-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 860px) {
  .vdp-auth-shell {
    padding: 18px;
  }

  .vdp-auth-frame {
    grid-template-columns: 1fr;
    width: min(100%, 620px);
    min-height: 0;
  }

  .vdp-auth-brand {
    min-height: 330px;
    border-right: 0;
    border-bottom: 1px solid var(--auth-line);
  }

  .vdp-auth-symbol-stage {
    width: 164px;
    margin-top: 34px;
    margin-bottom: 34px;
    padding: 19px;
    border-radius: 25px;
  }

  .vdp-auth-symbol-tile {
    padding: 17px;
    border-radius: 19px;
  }

  .vdp-auth-panel {
    padding: 44px clamp(25px, 7vw, 52px);
  }
}

@media (max-width: 520px) {
  .vdp-auth-shell {
    align-items: start;
    padding: 10px;
  }

  .vdp-auth-frame {
    border-radius: 18px;
  }

  .vdp-auth-brand {
    padding: 24px 21px;
  }

  .vdp-auth-symbol-stage {
    width: 138px;
    margin-top: 28px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 22px;
  }

  .vdp-auth-symbol-tile {
    padding: 14px;
    border-radius: 16px;
  }

  .vdp-auth-panel {
    padding: 34px 21px 28px;
  }

  .vdp-auth-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .vdp-auth-button:hover {
    transform: none;
  }
}
