/* The console's look: the app's colours (apps/desktop/src/app.css), light and dark. */
:root {
  color-scheme: light dark;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --border: #e2e2dd;
  --text: #1b1b19;
  --muted: #6d6d67;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --danger: #c81e1e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141413;
    --surface: #1c1c1b;
    --border: #2d2d2b;
    --text: #ecece9;
    --muted: #9b9b95;
    --accent: #8b93ff;
    --accent-text: #141413;
    --danger: #f87171;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 system-ui, sans-serif;
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

h1 {
  font-size: 26px;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 {
  font-size: 17px;
  margin: 0 0 12px;
}

section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 0 0 16px;
}

a {
  color: var(--accent);
}

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

.error,
.problem {
  color: var(--danger);
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}

li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

li:last-child {
  border-bottom: 0;
}

li .grow {
  flex: 1;
}

form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

button,
.button {
  font: inherit;
  padding: 7px 14px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  text-decoration: none;
  justify-self: start;
}

button.quiet {
  background: transparent;
  color: var(--accent);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
}

.picture {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--border);
}

.verified::before {
  content: "✓ ";
  color: var(--accent);
}

button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* A password input with its Show/Hide button beside it. */
.password {
  display: flex;
  gap: 8px;
}

.password input {
  flex: 1;
  min-width: 0;
}

meter {
  width: 100%;
  height: 8px;
}

.turnstile {
  min-height: 65px;
}

.confirm {
  display: grid;
  gap: 8px;
  margin: 8px 0;
  color: var(--text);
}

/* The channel view's offer to make an account: what a new channel is here for. */
section.featured {
  border: 2px solid var(--accent);
}
