/* FarmTrack landing / loader / auth — cinematic theme */
:root {
  --soil: #2c1a0e;
  --bark: #5c3d1e;
  --wheat: #c8a96e;
  --harvest: #e8c547;
  --leaf: #4a7c3f;
  --sage: #7fb069;
  --sky: #b8d4e8;
  --cream: #f5edd8;
  --rust: #c4622d;
}

body.landing-visible {
  overflow-y: auto;
}

body.landing-visible .sidebar,
body.landing-visible .main,
body.landing-visible .mobile-dock {
  visibility: hidden;
  pointer-events: none;
}

/* ══ LOADER ══ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--soil);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-sprout {
  width: 80px;
  height: 80px;
  margin-bottom: 32px;
  position: relative;
}

.sprout-stem {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  background: var(--sage);
  border-radius: 4px;
  animation: growStem 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  height: 0;
}

.sprout-leaf {
  position: absolute;
  width: 28px;
  height: 18px;
  background: var(--leaf);
  border-radius: 50% 0 50% 0;
  opacity: 0;
  transform-origin: bottom center;
}

.sprout-leaf.left {
  bottom: 40px;
  left: calc(50% - 26px);
  transform: rotate(-30deg);
  animation: growLeafL 0.5s 1.1s ease forwards;
}

.sprout-leaf.right {
  bottom: 52px;
  left: calc(50% + 2px);
  transform: rotate(30deg);
  animation: growLeafR 0.5s 1.3s ease forwards;
}

@keyframes growStem {
  to { height: 65px; }
}

@keyframes growLeafL {
  from { opacity: 0; transform: rotate(-30deg) scale(0); }
  to { opacity: 1; transform: rotate(-30deg) scale(1); }
}

@keyframes growLeafR {
  from { opacity: 0; transform: rotate(30deg) scale(0); }
  to { opacity: 1; transform: rotate(30deg) scale(1); }
}

.loader-brand {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--cream);
  letter-spacing: -0.02em;
  opacity: 0;
  animation: landingFadeUp 0.6s 1.5s ease forwards;
}

.loader-brand span { color: var(--harvest); }

.loader-sub {
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-top: 6px;
  opacity: 0;
  animation: landingFadeUp 0.6s 1.7s ease forwards;
}

.loader-bar-track {
  width: 180px;
  height: 3px;
  background: rgba(200, 169, 110, 0.2);
  border-radius: 10px;
  margin-top: 40px;
  opacity: 0;
  animation: landingFadeIn 0.4s 1.8s ease forwards;
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  width: 0;
  background: var(--harvest);
  border-radius: 10px;
  animation: fillBar 1.4s 1.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fillBar { to { width: 100%; } }

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

@keyframes landingFadeIn { to { opacity: 1; } }

/* ══ AUTH OVERLAY (landing) ══ */
.auth-overlay.landing-page {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  overflow-y: auto; /* Enable scrolling */
  overflow-x: hidden;
  background: var(--soil);
  -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
}

.auth-overlay.landing-page.active {
  display: block;
}

.auth-overlay.landing-page::before {
  display: none;
}

/* ══ SCENE ══ */
.auth-overlay .scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.auth-overlay .scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.18;
  pointer-events: none;
  z-index: 4;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  z-index: 1;
}

.bg-slide.active { opacity: 1; }

.bg-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(20, 10, 4, 0.6) 100%),
    linear-gradient(180deg, rgba(20, 10, 4, 0.25) 0%, transparent 30%, transparent 65%, rgba(20, 10, 4, 0.7) 100%);
}

.bg-tint {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(44, 26, 14, 0.35) 0%, rgba(200, 169, 110, 0.06) 50%, rgba(74, 124, 63, 0.12) 100%);
  mix-blend-mode: multiply;
}

.slide-dots {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10050;
  display: flex;
  gap: 8px;
  pointer-events: none;
}

.slide-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(245, 237, 216, 0.3);
  transition: all 0.4s ease;
}

.slide-dot.active {
  width: 22px;
  border-radius: 4px;
  background: var(--harvest);
}

.bg-caption {
  position: fixed;
  bottom: 18px;
  right: 20px;
  z-index: 10050;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.28);
  pointer-events: none;
  transition: opacity 0.6s;
}

.sun-wrap {
  position: absolute;
  top: 50px;
  right: 10%;
  width: 110px;
  height: 110px;
  z-index: 5;
}

.sun-core {
  position: absolute;
  inset: 15px;
  background: radial-gradient(circle, #ffe066 30%, #e8c547 65%, rgba(232, 197, 71, 0) 100%);
  border-radius: 50%;
  box-shadow: 0 0 60px 20px rgba(232, 197, 71, 0.3);
  animation: sunPulse 4s ease-in-out infinite;
  z-index: 2;
}

.sun-rays {
  position: absolute;
  inset: 0;
  animation: spinRays 20s linear infinite;
}

.sun-rays::before,
.sun-rays::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-conic-gradient(rgba(232, 197, 71, 0.18) 0deg, rgba(232, 197, 71, 0.18) 10deg, transparent 10deg, transparent 30deg);
  border-radius: 50%;
}

.sun-rays::after {
  animation: spinRays 12s linear infinite reverse;
  inset: 8px;
}

@keyframes spinRays { to { transform: rotate(360deg); } }

@keyframes sunPulse {
  0%, 100% { box-shadow: 0 0 60px 20px rgba(232, 197, 71, 0.3); }
  50% { box-shadow: 0 0 100px 40px rgba(232, 197, 71, 0.15); }
}

.cloud-wrap {
  position: absolute;
  z-index: 5;
  animation: drift var(--cdur) var(--cdel) linear infinite;
}

.cloud-body { position: relative; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25)); }

.cloud-body .cb {
  position: absolute;
  background: rgba(245, 237, 216, 0.09);
  border-radius: 50%;
}

.cloud-body .cb.main {
  width: var(--cw);
  height: calc(var(--cw) * 0.45);
  bottom: 0;
  left: 0;
  border-radius: 40px;
}

.cloud-body .cb.b1 {
  width: calc(var(--cw) * 0.45);
  height: calc(var(--cw) * 0.45);
  bottom: calc(var(--cw) * 0.22);
  left: calc(var(--cw) * 0.15);
}

.cloud-body .cb.b2 {
  width: calc(var(--cw) * 0.35);
  height: calc(var(--cw) * 0.35);
  bottom: calc(var(--cw) * 0.18);
  left: calc(var(--cw) * 0.44);
}

.cloud-body .cb.b3 {
  width: calc(var(--cw) * 0.28);
  height: calc(var(--cw) * 0.28);
  bottom: calc(var(--cw) * 0.12);
  right: calc(var(--cw) * 0.12);
}

.cloud-body .cb.shine {
  width: calc(var(--cw) * 0.3);
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  top: calc(var(--cw) * 0.1);
  left: calc(var(--cw) * 0.25);
}

@keyframes drift {
  from { transform: translateX(-350px); }
  to { transform: translateX(calc(100vw + 350px)); }
}

.bird-flock { position: absolute; pointer-events: none; z-index: 5; }

.bird {
  position: absolute;
  animation: birdFly var(--bdur) var(--bdel) ease-in-out infinite alternate;
}

.bird svg { animation: wingFlap 0.4s ease-in-out infinite alternate; }

@keyframes birdFly {
  from { transform: translateY(0); }
  to { transform: translateY(-14px); }
}

@keyframes wingFlap {
  from { transform: scaleY(1); }
  to { transform: scaleY(-0.4); }
}

.fireflies {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 5;
}

.fly {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--harvest);
  border-radius: 50%;
  animation: flyFloat var(--dur) var(--del) ease-in-out infinite alternate;
  opacity: 0;
}

@keyframes flyFloat {
  0% { opacity: 0; transform: translate(0, 0); }
  20% { opacity: 0.8; }
  80% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(var(--tx), var(--ty)); }
}

.wheat-row {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  z-index: 2;
  opacity: 0.25; /* Reduced opacity to fix "white things" issue */
  filter: grayscale(1) brightness(2);
}

.stalk {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: sway var(--sw) var(--sd) ease-in-out infinite alternate;
  transform-origin: bottom center;
}

.stalk-head {
  width: 6px;
  height: 18px;
  background: var(--wheat);
  border-radius: 3px 3px 0 0;
  position: relative;
}

.stalk-head::before,
.stalk-head::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--wheat);
  border-radius: 50%;
  top: 2px;
}

.stalk-head::before { left: -8px; }
.stalk-head::after { right: -8px; }

.stalk-body {
  width: 2px;
  background: var(--sage);
  flex: 1;
  min-height: 40px;
  max-height: 80px;
  border-radius: 2px;
}

@keyframes sway {
  from { transform: rotate(-4deg); }
  to { transform: rotate(4deg); }
}

/* Weather + language */
#weatherWidget {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 10060;
  background: rgba(44, 26, 14, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 18px;
  padding: 14px 18px;
  min-width: 180px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s, transform 0.5s;
}

#weatherWidget.ready {
  opacity: 1;
  transform: none;
}

.wx-top { display: flex; align-items: center; gap: 10px; }
.wx-icon { font-size: 2rem; line-height: 1; }
.wx-temp {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--harvest);
  line-height: 1;
}

.wx-desc {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-top: 2px;
}

.wx-bottom {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  border-top: 1px solid rgba(200, 169, 110, 0.12);
  padding-top: 10px;
}

.wx-stat { text-align: center; }
.wx-stat span { display: block; }
.wx-stat .wx-sv { font-size: 0.82rem; font-weight: 600; color: var(--cream); }
.wx-stat .wx-sl {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(200, 169, 110, 0.6);
}

.wx-location {
  font-size: 0.68rem;
  color: rgba(200, 169, 110, 0.5);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wx-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: wxPulse 2s ease-in-out infinite;
}

@keyframes wxPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

#langSelector { position: fixed; top: 20px; right: 20px; z-index: 10060; }

.lang-btn {
  background: rgba(44, 26, 14, 0.75);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: rgba(200, 169, 110, 0.4);
  background: rgba(44, 26, 14, 0.9);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(44, 26, 14, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  min-width: 160px;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lang-dropdown.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.lang-opt {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 16px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.83rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  transition: background 0.15s;
}

.lang-opt:hover { background: rgba(200, 169, 110, 0.1); }
.lang-opt.active { color: var(--harvest); background: rgba(232, 197, 71, 0.08); }
.lang-opt .lo-name { font-weight: 600; }
.lang-opt .lo-native { font-size: 0.72rem; color: var(--wheat); opacity: 0.7; }
.lang-chevron { margin-left: auto; transition: transform 0.2s; }
.lang-chevron.open { transform: rotate(180deg); }

/* Auth app column */
.auth-overlay .app-auth-container {
  position: relative;
  z-index: 100;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  opacity: 0;
  animation: landingFadeIn 0.8s 0.3s ease forwards;
}

/* Hide any leaking elements */
.strength-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  height: 4px; /* Fixed height */
  overflow: hidden;
}

.strength-bar {
  flex: 1;
  height: 100%;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.4s ease;
}

/* Fix for the white things at bottom - likely wheat row stalks or unstyled elements */
.wheat-row {
  pointer-events: none;
  opacity: 0.6;
}

.bg-photo-caption {
  position: absolute;
  bottom: 20px;
  right: 30px;
  color: rgba(255,255,255,0.6);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 5;
}

.brand-header { text-align: center; margin-bottom: 40px; }

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--leaf), var(--sage));
  border-radius: 20px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(74, 124, 63, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  animation: iconBob 3s ease-in-out infinite;
}

@keyframes iconBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.brand-icon svg { width: 36px; height: 36px; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: var(--cream);
  letter-spacing: -0.03em;
}

.brand-name em { color: var(--harvest); font-style: normal; }

.brand-tagline {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-top: 8px;
  font-weight: 600;
  opacity: 0.9;
}

.auth-overlay .auth-card {
  width: 100%;
  max-width: 490px;
  background: rgba(20, 32, 24, 0.88); /* Darker, plant-themed green */
  backdrop-filter: blur(24px);
  border: 1.5px solid rgba(129, 199, 132, 0.2);
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  padding: 0;
}

/* ══ AUTH TOGGLE ══ */
.auth-toggle-wrap {
  display: flex;
  background: rgba(0, 0, 0, 0.25);
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 20px;
  border: 1px solid rgba(129, 199, 132, 0.15);
}

.auth-toggle-btn {
  flex: 1;
  padding: 10px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-toggle-btn.active {
  background: var(--leaf);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.auth-toggle-btn:hover:not(.active) {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

.auth-overlay .auth-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle at top right, rgba(232, 197, 71, 0.12), transparent 70%);
  pointer-events: none;
}

.tab-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(200, 169, 110, 0.15);
}

.tab-btn {
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(245, 237, 216, 0.4);
  position: relative;
  transition: color 0.3s;
}

.tab-btn.active { color: var(--harvest); }

.tab-btn::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: var(--harvest);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-btn.active::after { transform: scaleX(1); }

.panels { position: relative; overflow: hidden; min-height: 320px; }

.auth-overlay .panel {
  padding: 28px 34px 24px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease;
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

.auth-overlay .panel.active {
  position: relative;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.auth-overlay .panel.exit-left {
  transform: translateX(-100%);
  opacity: 0;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 4px;
}

.panel-sub {
  font-size: 0.8rem;
  color: var(--wheat);
  margin-bottom: 22px;
  line-height: 1.5;
}

.panel-sub a { color: var(--harvest); text-decoration: none; font-weight: 600; }

.season-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 169, 110, 0.12);
  border: 1px solid rgba(200, 169, 110, 0.25);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wheat);
  font-weight: 500;
  margin-bottom: 10px;
}

.season-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
}

.hand-accent {
  font-family: 'Caveat', cursive;
  font-size: 1rem;
  color: var(--harvest);
  opacity: 0.8;
  margin-top: -4px;
  margin-bottom: 14px;
  display: block;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth-overlay .field { margin-bottom: 14px; animation: fieldIn 0.4s both; }

.auth-overlay .field label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wheat);
  margin-bottom: 6px;
}

.field-wrap { position: relative; }

.field-wrap svg.icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  opacity: 0.45;
  pointer-events: none;
  color: var(--cream);
}

.field-wrap:focus-within svg.icon { opacity: 1; color: var(--harvest); }

.auth-overlay .field input,
.auth-overlay .field select {
  width: 100%;
  padding: 12px 13px 12px 40px;
  background: rgba(245, 237, 216, 0.06);
  border: 1.5px solid rgba(200, 169, 110, 0.2);
  border-radius: 12px;
  color: var(--cream);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.auth-overlay .field input:not([type="checkbox"]) { padding-left: 40px; }

.auth-overlay .field input::placeholder { color: rgba(245, 237, 216, 0.22); }

.auth-overlay .field input:focus,
.auth-overlay .field select:focus {
  border-color: rgba(232, 197, 71, 0.5);
  background: rgba(245, 237, 216, 0.09);
  box-shadow: 0 0 0 3px rgba(232, 197, 71, 0.1);
}

.pw-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245, 237, 216, 0.3);
  padding: 4px;
}

.pw-toggle:hover { color: var(--wheat); }

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--leaf);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(56, 142, 60, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--sage);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(56, 142, 60, 0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; }

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: skewX(-20deg);
  animation: shine 3s 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 100% { left: -100%; }
  50% { left: 150%; }
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: landingSpin 0.7s linear infinite;
}

@keyframes landingSpin { to { transform: rotate(360deg); } }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(200, 169, 110, 0.2);
}

.divider span {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(245, 237, 216, 0.3);
}

#auth-status {
  margin-top: 16px;
  font-size: 12.5px;
  text-align: center;
  color: var(--wheat);
}
.btn-demo {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--harvest);
  color: var(--soil);
  border: none;
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(242, 208, 92, 0.2);
  animation: demoPulse 2.5s infinite;
}

@keyframes demoPulse {
  0% { transform: scale(1); box-shadow: 0 4px 12px rgba(242, 208, 92, 0.2); }
  50% { transform: scale(1.03); box-shadow: 0 6px 20px rgba(242, 208, 92, 0.4); }
  100% { transform: scale(1); box-shadow: 0 4px 12px rgba(242, 208, 92, 0.2); }
}

.btn-demo:hover {
  background: #fff;
  animation-play-state: paused;
  transform: translateY(-2px) scale(1.05);
}

.btn-demo .icon {
  font-size: 1rem;
  filter: drop-shadow(0 0 5px rgba(0,0,0,0.1));
}

/* Removed messy OTP styles */

/* ══ STRENGTH METER ══ */
.strength-meter {
  display: flex;
  gap: 4px;
  margin-top: 8px;
  height: 4px;
  width: 100%;
  position: relative;
  z-index: 5;
}

.strength-bar {
  flex: 1;
  height: 100%;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.4s ease;
}

/* Ensure bars are only visible in signup panel */
#loginPanel .strength-meter { display: none !important; }
#signupPanel .strength-meter { display: flex !important; }

.strength-bar.s1 { background: var(--rust); }
.strength-bar.s2 { background: var(--harvest); }
.strength-bar.s3 { background: var(--sage); }

/* ══ FIELD HINTS ══ */
.field-hint {
  font-size: 0.68rem;
  margin-top: 4px;
  padding-left: 2px;
  transition: color 0.2s;
}

.field-hint.ok { color: var(--sage); }
.field-hint.err { color: var(--rust); }

@keyframes fieldIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
  .auth-overlay .panel { padding: 22px 20px 20px; }
  .stat-strip { padding: 14px 20px; }
  .brand-name { font-size: 2rem; }
}

/* See mobile-fixes.css for full landing scroll + panel stack on phones */
