:root {
  color-scheme: dark;
  --bg: #050508;
  --surface: #10111e;
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f7ff;
  --muted: #b8b4c9;
  --accent: #a855f7;
  --danger: #fb7185;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

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

.preview-shell {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.preview-card {
  width: min(100%, 360px);
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}

.brand,
h1 {
  margin: 0;
}

.brand {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.22em;
}

h1 {
  font-size: 28px;
  letter-spacing: 0;
}

label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
button {
  width: 100%;
  min-height: 44px;
  border-radius: 10px;
  font: inherit;
}

input {
  border: 1px solid var(--line);
  background: #050508;
  color: var(--text);
  padding: 0 12px;
}

button {
  border: 0;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

button:disabled {
  cursor: progress;
  opacity: 0.7;
}

.message {
  min-height: 1.25em;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}
