:root {
  --bg: #f2efe8;
  --card: #fffdf8;
  --text: #1f1b16;
  --muted: #6d655b;
  --accent: #b04a2f;
  --accent-strong: #8e351e;
  --border: #d9d0c3;
  --danger-bg: #f8dfd8;
  --danger-text: #7a2416;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  background: radial-gradient(circle at top, #fff8eb 0%, var(--bg) 55%, #e8e0d5 100%);
  color: var(--text);
}

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

.card {
  width: min(100%, 460px);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(36, 22, 8, 0.12);
  padding: 28px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font-size: 28px;
  font-weight: 700;
}

.brand-title {
  margin: 0;
  font-size: 1.75rem;
}

.brand-subtitle {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.stack {
  display: grid;
  gap: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.scope-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 0.95rem;
}

input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  background: white;
}

input:focus {
  outline: 2px solid rgba(176, 74, 47, 0.25);
  border-color: var(--accent);
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: white;
  font: inherit;
  text-decoration: none;
  padding: 0 18px;
  cursor: pointer;
}

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

.alert {
  border-radius: 12px;
  padding: 12px 14px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}
