/* Remanso auth site — shared styles for index.html (verify/reset) and join/ (3.6). */

:root {
  --terracotta: #C4734B;
  --terracotta-dark: #A85E3A;
  --cream: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #5A3E2B;
  --muted: #8C7B6B;
  --border: #E8E0D6;
  --field: #FBF9F6;
  --success: #4F7A52;
  --error: #B4552F;
  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  background-color: var(--cream);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  -webkit-font-smoothing: antialiased;
}

.card {
  background: var(--surface);
  width: 100%;
  max-width: 400px;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(90, 62, 43, 0.10);
  padding: 32px 28px;
  text-align: center;
}

.wordmark {
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.5px;
  color: var(--terracotta);
  margin: 0 0 4px;
}

.tagline {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

h1 {
  font-size: 20px;
  font-weight: 700;
  margin: 8px 0 6px;
  color: var(--ink);
}

p.lead {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 8px;
}

.icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 28px;
}
.icon.ok { background: rgba(79, 122, 82, 0.12); color: var(--success); }
.icon.warn { background: rgba(180, 85, 47, 0.12); color: var(--error); }

form { text-align: left; margin-top: 20px; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-wrap { position: relative; margin-bottom: 14px; }

input[type="password"],
input[type="text"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
  padding: 0 46px 0 14px;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
input:focus { border-color: var(--terracotta); }
input.invalid { border-color: var(--error); }

.toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  padding: 6px;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 4px 0 18px;
}
.checklist li {
  font-size: 13px;
  color: var(--muted);
  padding: 2px 0 2px 22px;
  position: relative;
  transition: color 0.15s ease;
}
.checklist li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: var(--muted);
}
.checklist li.met { color: var(--success); }
.checklist li.met::before { content: '✓'; color: var(--success); }

button.primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}
button.primary:hover:not(:disabled) { background: var(--terracotta-dark); }
button.primary:disabled { opacity: 0.5; cursor: default; }

.form-error {
  color: var(--error);
  font-size: 14px;
  margin: 0 0 12px;
  min-height: 18px;
}

.footer {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

.spinner {
  width: 34px;
  height: 34px;
  border: 3px solid var(--border);
  border-top-color: var(--terracotta);
  border-radius: 50%;
  margin: 8px auto;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* ── Store block (3.6 DD12): platform-aware "Get Remanso" ── */
.store { margin-top: 20px; text-align: left; }
.store .steps { list-style: none; padding: 0; margin: 0 0 14px; counter-reset: step; }
.store .steps li {
  position: relative; padding: 4px 0 4px 32px; font-size: 14px; color: var(--ink); line-height: 1.45;
}
.store .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(196, 115, 75, 0.14); color: var(--terracotta);
  font-size: 12px; font-weight: 700; text-align: center; line-height: 22px;
}
.store a.primary {
  display: block; box-sizing: border-box; width: 100%; height: 50px; line-height: 50px;
  border-radius: 999px; background: var(--terracotta); color: #fff; text-align: center;
  font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.15s ease;
}
.store a.primary:hover { background: var(--terracotta-dark); }
.store .after { font-size: 14px; color: var(--muted); margin: 12px 0 0; text-align: center; line-height: 1.5; }
.store .other { font-size: 13px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.store .other a { color: var(--terracotta); font-weight: 600; text-decoration: none; }
.store .soon {
  background: var(--field); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; font-size: 14px; color: var(--ink); line-height: 1.5; text-align: center;
}

/* ── Join page ── */
.field { text-align: left; margin-bottom: 14px; }
input[type="email"] {
  width: 100%; height: 48px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--field); padding: 0 14px; font-family: var(--font); font-size: 16px; color: var(--ink); outline: none;
}
input[type="email"]:focus { border-color: var(--terracotta); }
input[readonly] { color: var(--muted); background: #F3EEE7; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hint a, .link-button { color: var(--terracotta); font-weight: 600; text-decoration: none; background: none; border: none; font-family: var(--font); font-size: inherit; cursor: pointer; padding: 0; }
.eyebrow { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
