/* Bluestem Needlework — shared styles */

/* Matches the studio's little bluestem palette (apps/web/src/styles.css). */
:root {
  --ink: #2f2a22;
  --paper: #f6f2e8;
  --panel: #ffffff;
  --accent: #a4552e;
  --accent-dark: #85431f;
  --border: #e3dbc9;
  --error: #b8443a;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

header.site-header {
  width: 100%;
  padding: 24px 20px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

header.site-header a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

main {
  width: 100%;
  max-width: 420px;
  padding: 40px 20px;
  flex: 1;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  font-weight: normal;
}

p.subtitle {
  margin: 0 0 28px;
  color: #6b6155;
  font-size: 0.95rem;
}

label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--paper);
  color: var(--ink);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 0.85rem;
  color: #6b6155;
}

.checkbox-row input {
  margin-top: 3px;
}

button {
  width: 100%;
  padding: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

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

.switch-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
}

.switch-link a {
  color: var(--accent-dark);
}

.message {
  margin-bottom: 18px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

.message.error {
  display: block;
  background: #f6e6e3;
  color: var(--error);
}

.message.success {
  display: block;
  background: #eaf0e2;
  color: var(--accent-dark);
}

.landing {
  text-align: center;
}

.landing .actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.landing .actions a {
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
}

.landing .actions a.primary {
  background: var(--accent);
  color: #fff;
}

.landing .actions a.secondary {
  border: 1px solid var(--border);
  color: var(--ink);
}
