/* light palette only, this page copies frontend/app/(auth)/index.tsx and that
   screen doesnt have a dark mode either so neither does this */
:root {
  --background-color: #fafaf9;
  --accent-color: #af3029;
  --text-body: #2a2010;
  --text-muted: #a8a29e;
  --text-primary: #0c0a09;
  --surface-muted: #f4f4f5;
  --border-warm: #e0d5b0;
  --ink: #0c0a09;
  --on-ink: #fbfaf9;
  --error-color: #8c2e2e;
  --error-bg: #f5dcdc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-color);
  color: var(--text-body);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 380px;
  padding: 0 28px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 36px;
  text-align: center;
}

.logo {
  color: var(--accent-color);
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-body);
  letter-spacing: 0.3px;
  margin-top: 8px;
}

.subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  margin-top: 14px;
}

input {
  width: 100%;
  background: var(--surface-muted);
  border: 1px solid var(--border-warm);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-body);
  font-family: inherit;
}

input:focus {
  outline: none;
}

.hint-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.primary-button {
  width: 100%;
  background: var(--ink);
  color: var(--on-ink);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 24px;
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: default;
}

.error-box {
  background: var(--error-bg);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 16px;
}

.error-box.field-error {
  margin-top: 10px;
  margin-bottom: 0;
}

.error-box span {
  color: var(--error-color);
  font-size: 13px;
}

.done-name {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-body);
  margin-top: 8px;
}

.done-copy {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.change-link {
  display: block;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 18px;
}

.done-exit {
  margin-top: 18px;
}

.waking-text {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}
