:root {
  /* Palette from the PlumExternal "Halfway Out" logo. */
  --bg: #140612;
  --bg-glow: #2b0c28;
  --card: #1d0a1a;
  --card-border: #36172f;
  --input-border: #4a2443;
  --input-focus: #e2b3d6;
  --text: #f3f0ec;
  --muted: #bba7b6;
  --faint: #8f7689;
  --button: #e2b3d6;
  --button-hover: #edc8e3;
  --button-text: #2b0c28;
  --error: #ff8f8f;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--bg-glow), transparent 70%) no-repeat, var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.stack {
  width: 100%;
  max-width: 408px;
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 40px 24px 22px;
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / 0.6);
  text-align: center;
}

.logo {
  display: block;
  width: 190px;
  height: auto;
  margin: 0 auto 30px;
}

h1 {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 6px 0 24px;
  font-size: 14px;
  color: var(--muted);
}

.input {
  display: block;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--input-border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color 120ms ease;
}

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

.input:focus {
  border-color: var(--input-focus);
}

.input[aria-invalid="true"] {
  border-color: var(--error);
}

.error {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--error);
  text-align: left;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 36px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 120ms ease;
}

.button:hover:not(:disabled) {
  background: var(--button-hover);
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.button:focus-visible,
.footer a:focus-visible {
  outline: 2px solid var(--input-focus);
  outline-offset: 2px;
}

.fine {
  margin: 20px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.success-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  word-break: break-all;
}

.footer {
  display: flex;
  justify-content: space-between;
  margin-top: 26px;
  padding: 0 2px;
  font-size: 14px;
  color: var(--muted);
}

.footer a {
  color: var(--muted);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.turnstile {
  margin-top: 16px;
  min-height: 65px;
}

.turnstile:empty {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 420px) {
  h1 {
    font-size: 22px;
  }
}
