/* ── Shared shell for auth & onboarding pages (matches landing page style) ── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { min-height: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #254226;
  color: #1e2330;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 2rem;
}
.nav-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.35rem; font-weight: 800; color: #fff; text-decoration: none;
}
.nav-logo svg { width: 30px; height: 30px; }
.nav-action {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.65rem 1.4rem;
  background: transparent; cursor: pointer;
  border: 1.5px solid #D0FF70; border-radius: 999px;
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  color: #D0FF70; text-decoration: none;
  transition: all 0.2s;
}
.nav-action:hover { background: #D0FF70; color: #1e2330; }

.auth-main {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 1.5rem 1.25rem 3rem;
}

.step-indicator {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 0.85rem; font-weight: 600; color: rgba(231, 245, 207, 0.8);
}
.step-dots { display: flex; gap: 0.35rem; }
.step-dot {
  width: 1.6rem; height: 0.35rem; border-radius: 999px;
  background: rgba(231, 245, 207, 0.25);
}
.step-dot.active { background: #D0FF70; }

.auth-card {
  width: min(440px, 100%);
  background: #fff;
  border-radius: 32px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 30px 60px rgba(15, 31, 13, 0.45);
}
.auth-card h1 {
  font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em;
  color: #1e2330; margin-bottom: 0.4rem;
}
.auth-card .subtitle { font-size: 0.95rem; color: #6b7280; margin-bottom: 1.75rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: #374151; margin-bottom: 0.35rem;
}
/* 16px inputs: anything smaller makes iOS Safari zoom in on focus */
.form-group input {
  width: 100%; padding: 0.8rem 1rem; font-size: 1rem;
  font-family: inherit; font-weight: 500;
  border: 2px solid transparent; border-radius: 14px;
  background: #f3f4f1; color: #1e2330; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder { color: #9ca3af; font-weight: 400; }
.form-group input:focus { border-color: #254226; background: #fff; }
.form-hint { font-size: 0.78rem; color: #9ca3af; margin-top: 0.35rem; }

.claim-field {
  display: flex; align-items: center;
  background: #f3f4f1; border: 2px solid transparent; border-radius: 14px;
  padding-left: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.claim-field:focus-within { border-color: #254226; background: #fff; }
.claim-field span { font-size: 1rem; font-weight: 600; color: #9ca3af; white-space: nowrap; }
.claim-field input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font-family: inherit; font-size: 1rem; font-weight: 600; color: #1e2330;
  padding: 0.8rem 1rem 0.8rem 0.15rem;
}
.claim-field input::placeholder { color: #c3c9d2; font-weight: 500; }

.btn-primary {
  width: 100%; padding: 0.95rem; margin-top: 0.75rem;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  background: #D0FF70; color: #1e2330; border: none; border-radius: 999px;
  cursor: pointer; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(208, 255, 112, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(208, 255, 112, 0.5); }
.btn-primary:disabled {
  background: #e5e7eb; color: #9ca3af; cursor: not-allowed;
  transform: none; box-shadow: none;
}

.error-msg {
  background: #fde8e8; color: #9b1c1c; padding: 0.75rem 1rem;
  border-radius: 14px; font-size: 0.9rem; margin-bottom: 1.25rem;
}

.claim-banner {
  display: flex; align-items: center; gap: 0.5rem;
  background: #f2fadf; border: 1.5px solid #D0FF70; border-radius: 14px;
  padding: 0.7rem 1rem; margin-bottom: 1.25rem;
  font-size: 0.88rem; font-weight: 500; color: #33511f;
}
.claim-banner strong { font-weight: 700; }

.switch-link {
  margin-top: 1.5rem;
  font-size: 0.9rem; color: rgba(231, 245, 207, 0.8);
  text-align: center;
}
.switch-link a { color: #D0FF70; font-weight: 700; text-decoration: none; }
.switch-link a:hover { text-decoration: underline; }

.demo-accounts { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px dashed #e5e7eb; }
.demo-accounts h3 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #9ca3af; margin-bottom: 0.6rem;
}
.demo-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem;
  font-size: 0.82rem; color: #6b7280; margin-bottom: 0.4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.demo-row span { overflow-wrap: anywhere; }
.demo-row button {
  background: #f3f4f1; border: none; border-radius: 999px; padding: 0.45rem 0.9rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 600; color: #374151; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.demo-row button:hover { background: #D0FF70; }

@media (max-width: 480px) {
  .auth-nav { padding: 1rem 1.1rem; }
  .nav-logo { font-size: 1.2rem; }
  .nav-logo svg { width: 26px; height: 26px; }
  .nav-action { padding: 0.55rem 1.1rem; font-size: 0.85rem; }
  .auth-main { padding: 0.75rem 1rem 2.5rem; }
  .auth-card { padding: 1.75rem 1.25rem; border-radius: 24px; }
  .auth-card h1 { font-size: 1.45rem; }
  .auth-card .subtitle { margin-bottom: 1.4rem; }
  .step-indicator { margin-bottom: 1rem; }
}
