:root {
  color-scheme: dark;
  --bg: #131016;
  --panel: #1c1722;
  --elevated: #201925;
  --text: #f5f0e7;
  --secondary: rgba(245, 240, 231, 0.62);
  --faint: rgba(245, 240, 231, 0.4);
  --hairline: rgba(245, 240, 231, 0.12);
  --coral: #f26f74;
  --plum: #653a78;
  --plum-bright: #b98ccf;
  --ok: #7fc79a;
  --danger: #e8757b;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.shell {
  width: min(680px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 58px;
}

.brand-name {
  font-size: 27px;
  letter-spacing: -0.04em;
}

.brand-divider {
  width: 1px;
  height: 25px;
  background: rgba(155, 111, 180, 0.55);
}

.brand-product,
.eyebrow {
  color: var(--plum-bright);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.panel {
  padding: clamp(26px, 6vw, 54px);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  background: var(--panel);
}

.panel.centered {
  text-align: center;
}

h1 {
  margin: 10px 0 12px;
  font-size: clamp(34px, 7vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.lede,
.device-summary,
.privacy-note {
  color: var(--secondary);
  line-height: 1.55;
}

form {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

label,
legend {
  font-size: 14px;
  font-weight: 650;
}

input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  outline: none;
  background: var(--elevated);
  color: var(--text);
  font: inherit;
}

#link-code {
  text-transform: uppercase;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

input:focus {
  border-color: var(--plum-bright);
  box-shadow: 0 0 0 3px rgba(185, 140, 207, 0.16);
}

button {
  min-height: 54px;
  margin-top: 8px;
  border: 0;
  border-radius: 14px;
  background: var(--coral);
  color: #131016;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.55;
}

button.secondary {
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--secondary);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
}

.server-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--elevated);
}

.server-option input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--plum-bright);
}

.privacy-note {
  margin: -4px 0 8px;
  font-size: 13px;
}

#turnstile-widget {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: center;
}

.confirmation-phrase {
  margin: 30px 0;
  color: var(--text);
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 750;
  letter-spacing: -0.025em;
  text-transform: capitalize;
}

.status-dot {
  width: 14px;
  height: 14px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 8px rgba(127, 199, 154, 0.12);
}

.error {
  min-height: 24px;
  margin: 18px 10px;
  color: var(--danger);
  text-align: center;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .shell {
    padding-top: 24px;
  }

  .brand {
    margin-bottom: 32px;
  }

  .panel {
    border-radius: 20px;
  }
}
