/* =========================================================
   HEALTHZENA — shared styles
   Tokens
   ---------------------------------------------------------
   Background:      #FFFFFF / alt panel #F6F7F9
   Text (primary):   #1B1E23
   Text (secondary): #6B7280
   Hairline:         #E5E8EC
   Accent (ink):     #2B3A52  /  hover #1F2B3D
   Category tags (muted, desaturated):
     Sleep   #6B74B8
     Stress  #B97C89
     Brain   #8C7FB3
     Energy  #C08A4E
     Diet    #6E9C7C
   ========================================================= */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F6F7F9;
  --surface: #FFFFFF;
  --text: #1B1E23;
  --text-soft: #6B7280;
  --line: #E5E8EC;
  --accent: #2B3A52;
  --accent-hover: #1F2B3D;
  --accent-tint: #EEF1F6;

  --sleep: #6B74B8;
  --stress: #B97C89;
  --brainfog: #8C7FB3;
  --energy: #C08A4E;
  --diet: #6E9C7C;

  --radius-s: 7px;
  --radius-m: 11px;
  --radius-l: 16px;

  --font-display: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
}

.logo img {
  width: 34px;
  height: 34px;
  display: block;
  flex-shrink: 0;
}

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

.footer-brand .logo img { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: background 0.15s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, top 0.2s ease;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mobile-menu.open { display: block; }

.mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 8px 24px 18px;
}

.mobile-menu li { border-top: 1px solid var(--line); }
.mobile-menu li:first-child { border-top: none; }

.mobile-menu a {
  display: block;
  padding: 14px 2px;
  text-decoration: none;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 500;
}

/* ---------- Article byline ---------- */

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 4px 0 26px;
}

.byline strong { color: var(--text); font-weight: 600; }
.byline .byline-dot { opacity: 0.5; }
.reviewed-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-tint);
  color: var(--accent-hover);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ---------- Cookie consent banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow: 0 10px 30px -14px rgba(27, 30, 35, 0.22);
  padding: 18px 20px;
  display: none;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cookie-banner.visible { display: flex; }

.cookie-banner p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-soft);
  flex: 1;
  min-width: 220px;
}

.cookie-banner p a { color: var(--accent); text-decoration: underline; }

.cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-actions button {
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-body);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.cookie-actions button.accept {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.cookie-actions button.accept:hover { background: var(--accent-hover); }

/* ---------- Tracker page ---------- */

.tracker-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  background: var(--bg-alt);
}

.tracker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.tracker-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

.tracker-notes-label { margin-bottom: 18px; }

.tracker-form input,
.tracker-form select,
.tracker-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--text);
}

.tracker-form textarea { resize: vertical; }

.tracker-form-message {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 12px 0 0;
  min-height: 18px;
}

.tracker-insight {
  margin-top: 26px;
  background: var(--accent-tint);
  border: 1px solid #DDE3EC;
  border-radius: var(--radius-m);
  padding: 20px 22px;
}

.tracker-insight h3 {
  font-size: 15px;
  margin: 0 0 8px;
}

.tracker-insight p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}

.entries-list { margin-top: 6px; }

.tracker-empty {
  color: var(--text-soft);
  font-size: 15px;
}

.entry-row {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.entry-row:first-child { padding-top: 0; }

.entry-date {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.entry-stats {
  display: flex;
  gap: 14px;
  font-size: 13.5px;
  color: var(--text-soft);
}

.entry-notes {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--text-soft);
  font-style: italic;
}

@media (max-width: 560px) {
  .tracker-grid { grid-template-columns: 1fr; }
  .entry-stats { flex-wrap: wrap; gap: 8px 14px; }
}

.mission-band {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 52px 0;
}

.mission-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.mission-text { max-width: 560px; }

.mission-text h2 {
  font-family: var(--font-display);
  font-size: 26px;
  margin: 0 0 12px;
  line-height: 1.3;
}

.mission-text p {
  color: var(--text-soft);
  font-size: 15.5px;
  margin: 0 0 14px;
}

.mission-link {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.mission-link:hover { color: var(--accent-hover); }

.mission-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 26px 34px;
  flex-shrink: 0;
}

.mission-stat-number {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
}

.mission-stat-label {
  font-size: 12.5px;
  color: var(--text-soft);
  max-width: 130px;
  margin-top: 8px;
}

@media (max-width: 700px) {
  .mission-inner { flex-direction: column; text-align: center; }
  .mission-text { max-width: 100%; }
}

/* ---------- Legal pages ---------- */

.legal-body h2 { font-family: var(--font-display); font-size: 21px; margin: 38px 0 14px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-soft); font-size: 15.5px; }
.legal-body strong { color: var(--text); }
.updated-note { font-size: 13.5px; color: var(--text-soft); margin-bottom: 32px; }

/* ---------- 404 page ---------- */

.error-page {
  text-align: center;
  padding: 100px 0 120px;
}

.error-page .eyebrow { margin-bottom: 24px; }

.error-page h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 40px);
  margin: 0 0 14px;
}

.error-page p {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 460px;
  margin: 0 auto 30px;
}

.error-page .btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 26px;
  border-radius: 999px;
}

.error-page .btn-primary:hover { background: var(--accent-hover); }

/* ---------- Hero ---------- */

.hero {
  padding: 76px 0 64px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-tint);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero p.sub {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* Mood picker — the site's signature element */

.mood-picker {
  max-width: 640px;
  margin: 0 auto;
}

.mood-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 6px 18px -12px rgba(27, 30, 35, 0.14);
}

.mood-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
}

.mood-input-row input::placeholder {
  color: #9AA5B1;
}

.mood-input-row button {
  border: none;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.mood-input-row button:hover { background: var(--accent-hover); }
.mood-input-row button:active { transform: scale(0.97); }

.mood-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.mood-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mood-chip:hover,
.mood-chip:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.mood-result {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--text-soft);
  min-height: 20px;
}

.mood-result a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
}

/* ---------- Category grid ---------- */

.section {
  padding: 56px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 28px;
  margin: 0;
}

.section-head p {
  color: var(--text-soft);
  font-size: 15px;
  margin: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px 18px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: block;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(27, 30, 35, 0.18);
  border-color: var(--line);
}

.category-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-bottom: 14px;
}

.category-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.category-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0;
}

.dot-sleep { background: var(--sleep); }
.dot-stress { background: var(--stress); }
.dot-brainfog { background: var(--brainfog); }
.dot-energy { background: var(--energy); }
.dot-diet { background: var(--diet); }

/* ---------- Article cards ---------- */

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 26px;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.article-card:hover,
.article-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -14px rgba(27, 30, 35, 0.18);
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 14px;
}

.article-tag .category-dot {
  margin: 0;
}

.article-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.article-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
}

/* ---------- Article page ---------- */

.article-hero {
  padding: 48px 0 20px;
}

.article-hero .article-tag { margin-bottom: 18px; }

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 42px);
  line-height: 1.18;
  margin: 0 0 18px;
}

.article-hero .dek {
  color: var(--text-soft);
  font-size: 18px;
  max-width: 640px;
}

.article-body {
  padding: 12px 0 60px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 46px 0 16px;
}

.article-body h2:first-child { margin-top: 0; }

.article-body p {
  margin: 0 0 18px;
  font-size: 17px;
}

.article-body ul {
  margin: 0 0 20px;
  padding-left: 20px;
}

.article-body li {
  margin-bottom: 10px;
}

.callout {
  background: var(--accent-tint);
  border: 1px solid #DAE7F0;
  border-radius: var(--radius-m);
  padding: 22px 24px;
  margin: 32px 0;
}

.callout h2 {
  margin-top: 0 !important;
  font-size: 19px !important;
}

.callout p:last-child { margin-bottom: 0; }

.callout.doctor {
  background: #FBF0F1;
  border-color: #F0DCDF;
}

.related {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 12px;
}

.related h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.related-links a:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Disclaimer strip ---------- */

.disclaimer-strip {
  background: #EEF2F5;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 13.5px;
  color: var(--text-soft);
  text-align: center;
}

.disclaimer-strip a {
  color: var(--text-soft);
  text-decoration: underline;
}

/* ---------- Footer ---------- */

footer.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-brand .logo { display: block; margin-bottom: 10px; }

.footer-brand p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 320px;
  margin: 0;
}

.footer-cols {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  text-decoration: none;
  color: var(--text);
  font-size: 14.5px;
}

.footer-col a:hover { color: var(--accent); }

.footer-legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ---------- Reveal-on-scroll (subtle) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { flex-direction: column; }
}

@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .mood-input-row { flex-wrap: wrap; border-radius: 22px; padding: 14px; }
  .mood-input-row input { width: 100%; order: 1; }
  .mood-input-row button { order: 2; width: 100%; }
  .hero { padding: 52px 0 44px; }
  .section { padding: 40px 0; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
}

/* ---------- Auth pages ---------- */

.auth-page { padding: 56px 0 60px; }
.auth-page h1 { font-family: var(--font-display); font-size: 30px; margin: 0 0 12px; }
.auth-page .dek { color: var(--text-soft); font-size: 16px; margin-bottom: 30px; max-width: 480px; }
.auth-form { max-width: 420px; }
.auth-switch { margin-top: 20px; font-size: 14.5px; color: var(--text-soft); }
.auth-switch a { color: var(--accent); font-weight: 600; text-decoration: none; }

/* ---------- Status badges ---------- */

.status-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}

.status-pending { background: #F3EEE0; color: #8A6D1F; }
.status-approved { background: #E4F0E7; color: #2F6B44; }
.status-rejected { background: #F5E6E6; color: #A03E3E; }

/* ---------- Community posts ---------- */

.community-post {
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.community-post:first-child { padding-top: 0; }

.community-post h2 {
  font-family: var(--font-display);
  font-size: 22px;
  margin: 10px 0 6px;
}

.community-byline {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 16px;
}

.community-body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}

/* ---------- Tracker: scale picker ---------- */

.scale-field { margin-bottom: 20px; }

.scale-field-label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.scale-picker {
  display: flex;
  gap: 6px;
}

.scale-btn {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: all 0.15s ease;
}

.scale-btn:hover { border-color: var(--accent); color: var(--accent); }

.scale-btn.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.scale-endpoints {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-soft);
  margin-top: 6px;
}

/* ---------- Tracker: trend chart ---------- */

.tracker-chart-block {
  margin-top: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
}

.tracker-chart-block h2 {
  font-size: 16px;
  margin: 0 0 14px;
}

.chart-legend {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-soft);
}

.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  display: inline-block;
}

.legend-energy { background: var(--accent); }
.legend-stress { background: #C08A4E; opacity: 0.55; }

/* ---------- Auth split layout ---------- */

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 69px);
}

.auth-brand-panel {
  background: var(--accent);
  color: #fff;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-brand-panel .logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  margin-bottom: 32px;
}

.auth-brand-panel h2 {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.3;
  margin: 0 0 16px;
  max-width: 380px;
}

.auth-brand-panel p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 0 28px;
}

.auth-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-brand-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.9);
}

.auth-brand-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #C08A4E;
  margin-top: 7px;
  flex-shrink: 0;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}

.auth-form-inner { width: 100%; max-width: 360px; }
.auth-form-inner h1 { font-family: var(--font-display); font-size: 27px; margin: 0 0 8px; }
.auth-form-inner .dek { color: var(--text-soft); font-size: 15px; margin: 0 0 28px; max-width: none; }

.password-field-wrap { position: relative; }
.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(calc(-50% + 12px));
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font-body);
  padding: 4px;
}

@media (max-width: 860px) {
  .auth-split { grid-template-columns: 1fr; min-height: auto; }
  .auth-brand-panel { padding: 44px 28px; }
  .auth-form-panel { padding: 44px 28px; }
}

/* ---------- Avatar / profile picture ---------- */

.avatar-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 30px;
}

.avatar-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--line);
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
}

.avatar-upload-btn {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: var(--surface);
}

.avatar-upload-btn:hover { border-color: var(--accent); color: var(--accent); }
