/* Meals4Us — deep red-to-black gradient identity (matches the app icon),
   calm warm-neutral body so it stays easy to read. Refined, not candy-coated. */

:root {
  --bg: #EFECE7;
  --card: #FFFFFF;
  --ink: #1B1512;
  --ink-soft: #6B645C;
  --line: #E2DCD3;
  --red: #8C1D24;
  --red-bright: #B0222E;
  --red-tint: rgba(140, 29, 36, 0.08);
  --red-tint-strong: rgba(140, 29, 36, 0.14);
  --header-gradient: linear-gradient(135deg, #A81D26 0%, #5C0F14 55%, #171111 100%);
  --shadow: 0 1px 2px rgba(27, 21, 18, 0.06), 0 6px 16px rgba(27, 21, 18, 0.06);
  --shadow-lift: 0 10px 28px rgba(27, 21, 18, 0.16);
  --radius: 12px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100vh; }
button { font-family: inherit; }

.app-shell {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* Header — the one place the icon's red/black gradient drama lives */
.app-header {
  padding: 16px 20px 12px;
  position: sticky;
  top: 0;
  background: var(--header-gradient);
  z-index: 5;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

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

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  display: block;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.brand-name {
  font-size: 32px;
  font-weight: 600;
  color: #F5F1EC;
  letter-spacing: -0.005em;
}

.brand-name span { color: inherit; }

.progress {
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.progress li {
  flex: 1;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: rgba(245, 241, 236, 0.4);
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(245, 241, 236, 0.18);
  transition: color .2s, border-color .2s;
  cursor: pointer;
}

.progress li.locked {
  cursor: default;
  opacity: .45;
  pointer-events: none;
}

.progress li.active {
  color: #F5F1EC;
  border-color: #FF6B6F;
}

.progress li.done {
  color: rgba(245, 241, 236, 0.7);
  border-color: rgba(245, 241, 236, 0.45);
}

/* Main / screens */
#app { flex: 1; display: flex; flex-direction: column; }

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn .25s ease;
}

.screen.hidden { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.screen-inner { flex: 1; padding: 14px 20px 24px; }

.back-link {
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: 0 0 14px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.back-link:hover { color: var(--red); }

h1 {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.subtitle {
  font-size: 16px;
  color: var(--ink-soft);
  margin: 0 0 12px;
  line-height: 1.4;
}

.screen-footer {
  position: sticky;
  bottom: 0;
  padding: 14px 20px 20px;
  background: linear-gradient(180deg, rgba(239,236,231,0) 0%, var(--bg) 40%);
}

.screen-footer-split { display: flex; gap: 10px; }
.screen-footer-split .btn { flex: 1; }

/* Buttons */
.btn {
  border: none;
  border-radius: 10px;
  padding: 15px 20px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, opacity .15s ease, filter .15s ease;
}

.btn:active { transform: scale(0.98); }
.btn-full { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--red-bright), #3A0D10);
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(140, 29, 36, 0.3);
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover { border-color: var(--red); color: var(--red); }

.household-box {
  background: #F7F4EF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-bottom: 10px;
}

.household-row { display: flex; gap: 8px; margin-top: 2px; }
.household-field { flex: 1; }

.household-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 3px;
}

.household-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}

.household-field input:focus {
  outline: none;
  border-color: var(--red);
}

.household-field-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 14.5px;
  font-weight: 700;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}

.household-field-select:focus {
  outline: none;
  border-color: var(--red);
}

/* Screen 1 — family text */
.family-textarea {
  width: 100%;
  min-height: 220px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card);
  padding: 16px;
  font-size: 16.5px;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
  box-shadow: var(--shadow);
}

.family-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}

.field-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 12px 0 6px;
}

.field-label span {
  font-weight: 400;
  font-style: italic;
}

.family-notes {
  min-height: 90px;
}

.reset-everything-btn {
  display: block;
  width: 100%;
  margin-top: 22px;
  background: none;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.reset-everything-btn:hover {
  border-color: var(--red);
  color: var(--red);
}

.clear-text-btn {
  display: block;
  margin: 4px 0 0 auto;
  background: none;
  border: none;
  padding: 2px 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}

.clear-text-btn:hover { color: var(--red); }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.suggestion-box {
  margin-top: 10px;
  background: #F7F4EF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.suggestion-box.hidden { display: none; }

.suggestion-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

.suggestion-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.suggestion-pill {
  background: var(--card);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.suggestion-pill.used {
  background: var(--red);
  color: #FFFFFF;
  border-color: var(--red);
}

.suggestion-pill-wrap {
  display: inline-flex;
  align-items: stretch;
  border-radius: 8px;
  overflow: hidden;
}

.suggestion-pill-wrap .suggestion-pill {
  border-radius: 8px 0 0 8px;
  border-right: none;
}

.suggestion-pill-remove {
  background: var(--card);
  border: 1px solid var(--red);
  border-left: none;
  border-radius: 0 8px 8px 0;
  color: var(--red);
  font-size: 12px;
  padding: 0 9px;
  cursor: pointer;
}

.suggestion-pill-wrap .suggestion-pill.used + .suggestion-pill-remove {
  background: var(--red);
  border-color: var(--red);
  color: #FFFFFF;
}

.add-word-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.add-word-input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}

.add-word-input:focus {
  outline: none;
  border-color: var(--red);
}

.add-word-btn {
  border: 1px solid var(--red);
  background: var(--card);
  color: var(--red);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.add-word-btn:hover { background: var(--red); color: #FFFFFF; }

.chip {
  background: var(--card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}

.chip:hover, .chip:active { border-color: var(--red); color: var(--red); }

/* Screen 2 — learned profile */
.learned-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

.learned-card h2 {
  font-size: 13.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 0 0 12px;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  background: #F7F4EF;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 13px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: capitalize;
}

.tag-list:empty::after {
  content: "Nothing here yet";
  font-size: 15.5px;
  color: var(--ink-soft);
  font-style: italic;
}

.empty-note {
  background: #F7F4EF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15.5px;
  color: var(--ink-soft);
}

.empty-note.hidden { display: none; }

/* Screen 3 — week plan */
.week-list { display: flex; flex-direction: column; gap: 6px; }

.next-week-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.next-week-box.hidden { display: none; }

.next-week-list { display: flex; flex-direction: column; gap: 8px; }

.next-week-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.next-week-item-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.next-week-item-day {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--red);
  flex-shrink: 0;
}

.add-recipe-btn { margin-top: 20px; }

/* Add Your Own Recipe form (rendered inside the shared modal) */
.recipe-form-field { margin-bottom: 14px; }

.recipe-form-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.recipe-form-field input[type="text"],
.recipe-form-field input[type="number"],
.recipe-form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}

.recipe-form-field input:focus,
.recipe-form-field select:focus {
  outline: none;
  border-color: var(--red);
}

.recipe-form-row { display: flex; gap: 10px; }
.recipe-form-row .recipe-form-field { flex: 1; }

.checkbox-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.ingredient-row {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}

.ingredient-row input[type="text"] {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}

.ingredient-row .ing-name { flex: 2; min-width: 0; }
.ingredient-row .ing-qty { flex: 0.6; min-width: 0; }
.ingredient-row select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 9px 4px; font-size: 12.5px; font-family: inherit; color: var(--ink); background: var(--card); }

.ingredient-row .ingredient-remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  flex-shrink: 0;
}

.recipe-form-actions { display: flex; gap: 10px; margin-top: 18px; }
.recipe-form-actions .btn { flex: 1; }

.day-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 7px 12px 9px;
  box-shadow: var(--shadow);
}

.day-name-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3px;
}

.day-name {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
}

.free-day-toggle {
  background: none;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 2px 0;
}

.free-day-toggle:hover { color: var(--red); }

.free-day-card {
  border-style: dashed;
  background: #F7F4EF;
  box-shadow: none;
}

.free-day-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 2px;
}

.free-day-emoji {
  font-size: 22px;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.free-day-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.free-day-subtitle { font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }

.meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.meal-emoji {
  font-size: 14px;
  line-height: 1;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.meal-name { font-size: 14.5px; font-weight: 600; }

.meal-meta {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 0;
}

.meal-actions { display: flex; gap: 5px; margin-top: 5px; }
.meal-actions:first-of-type { margin-top: 0; }

.meal-btn {
  flex: 1;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 7px;
  padding: 6px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  white-space: nowrap;
}

.meal-btn:hover { border-color: var(--red); color: var(--red); }
.meal-btn:active { transform: scale(0.96); }

.meal-btn.loved {
  background: var(--red-tint-strong);
  border-color: var(--red);
  color: var(--red);
}

.meal-btn.marked-ok {
  background: var(--red-tint);
  border-color: var(--ink-soft);
  color: var(--ink);
}

.pick-recipe-btn, .side-editor-btn {
  display: block;
  width: 100%;
  margin-top: 5px;
}

.recipe-picker-search {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  margin-bottom: 12px;
}

.recipe-picker-search:focus { outline: none; border-color: var(--red); }

.recipe-picker-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 48vh;
  overflow-y: auto;
}

.recipe-picker-empty {
  font-size: 14px;
  color: var(--ink-soft);
  text-align: center;
  padding: 20px 0;
}

.meal-btn.remove-btn:hover {
  border-color: var(--red);
  background: var(--red);
  color: #FFFFFF;
}

/* Screen 4 — grocery list */
.grocery-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }

.grocery-category {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px;
  box-shadow: var(--shadow);
}

.grocery-category-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin: 0 0 4px;
  padding-left: 8px;
  border-left: 3px solid var(--red);
}

.grocery-items { display: flex; flex-direction: column; }

.grocery-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.grocery-item:last-child { border-bottom: none; }

.grocery-check {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
  flex-shrink: 0;
}

.grocery-item-name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}

.grocery-item-qty {
  font-size: 12.5px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.grocery-item.checked .grocery-item-name,
.grocery-item.checked .grocery-item-qty {
  text-decoration: line-through;
  color: var(--ink-soft);
  opacity: .6;
}

.grocery-remove {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  padding: 2px;
}

/* Modal (recipe view) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 13, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 20;
}

.modal-backdrop.hidden { display: none; }

.modal-card {
  background: var(--card);
  width: 100%;
  max-width: 560px;
  border-radius: 18px 18px 0 0;
  padding: 22px 20px 28px;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp .2s ease;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 1px solid var(--line);
  background: var(--card);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 13px;
  cursor: pointer;
}

.modal-body-emoji {
  font-size: 26px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body-title {
  font-size: 21px;
  font-weight: 600;
  margin: 12px 0 4px;
}

.modal-body-meta {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.day-pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.day-pick-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
}

.day-pick-option:hover { border-color: var(--red); }

.day-pick-day {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--red);
  flex-shrink: 0;
}

.day-pick-meal {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.modal-ingredients h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.modal-ingredients ul {
  margin: 0;
  padding-left: 18px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink);
}

.modal-instructions { margin-top: 20px; }

.modal-instructions h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.modal-instructions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.modal-instructions li { margin-bottom: 8px; }
.modal-instructions li:last-child { margin-bottom: 0; }

@media (min-width: 600px) {
  .app-shell { box-shadow: var(--shadow-lift); }
}

/* Account strip — small "signed in as" row in the header */
.account-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 10px;
  font-size: 12.5px;
  color: rgba(245, 241, 236, 0.75);
}

.account-strip.hidden { display: none; }
.account-strip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.account-strip button {
  flex-shrink: 0;
  background: none;
  border: 1px solid rgba(245, 241, 236, 0.3);
  border-radius: 8px;
  color: rgba(245, 241, 236, 0.9);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
}

.account-strip button:hover { border-color: rgba(245, 241, 236, 0.6); }

#trial-badge {
  flex-shrink: 0;
  background: rgba(242, 196, 51, 0.18);
  border: 1px solid rgba(242, 196, 51, 0.5);
  color: #F2C433;
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 700;
}
#trial-badge.hidden { display: none; }
#btn-manage-billing.hidden { display: none; }

/* Auth gate — full-screen sign in / create account overlay */
.auth-gate {
  position: fixed;
  inset: 0;
  background: var(--header-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}

.auth-gate.hidden { display: none; }

.auth-card {
  background: var(--card);
  border-radius: 18px;
  padding: 32px 24px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: var(--shadow-lift);
}

.auth-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-card .subtitle { margin: 0 0 20px; }

.auth-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
  margin-bottom: 10px;
}

.auth-input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}

.auth-error {
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  margin: -2px 0 12px;
  text-align: left;
}

.auth-error.hidden { display: none; }
.auth-error.auth-success { color: #2E7D32; }

.auth-link {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  padding: 12px 0 0;
  cursor: pointer;
}

.auth-link:hover { color: var(--red); }

.lead-form { text-align: left; }
.lead-form.hidden { display: none; }

.lead-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 2px 0 12px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
}
.lead-consent input { margin-top: 2px; }
