:root {
  --green: #2E5332;
  --green-soft: #eef4ef;
  --green-line: #d5e2d7;
  --ink: #1a1f18;
  --muted: #66706a;
  --gold: #d4a017;
  --ivory: #FAF7F0;
  --line: #dde2de;
  --card: #ffffff;
  --shadow: 0 14px 40px rgba(46, 83, 50, 0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--ink);
  background: var(--ivory);
}
button, input { font: inherit; }
a { color: var(--green); }
.is-hidden { display: none !important; }

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(480px, 0.95fr);
  background: var(--ivory);
}

.brand-panel {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  padding: 48px clamp(36px, 6vw, 88px) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(90deg, rgba(250,247,240,.96) 0%, rgba(250,247,240,.78) 46%, rgba(250,247,240,.18) 100%),
    url('../images/auth/ayurveda-products.png') right bottom / cover no-repeat;
}
.brand-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(250,247,240,.28), transparent 42%);
}
.brand-copy,
.brand-proof,
.trust-grid {
  position: relative;
  z-index: 1;
}

.brand-logo-link {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  margin-bottom: 28px;
}
.brand-logo {
  width: 118px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}
.brand-tagline {
  margin-top: 8px;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 700;
}

.brand-copy h1 {
  font: 700 clamp(34px, 3.1vw, 54px)/1.12 'Merriweather', Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0;
  color: #171a16;
}
.brand-copy h1 span { color: var(--green); }
.brand-copy > p {
  max-width: 470px;
  font-size: 16px;
  line-height: 1.75;
  margin: 22px 0 28px;
  color: #4d564f;
}

.brand-benefits {
  list-style: none;
  display: flex;
  gap: 0;
  max-width: 520px;
  margin: 0;
  padding: 0;
}
.brand-benefits li {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 16px;
  color: var(--green);
}
.brand-benefits li:first-child { padding-left: 0; }
.brand-benefits li + li { border-left: 1px solid rgba(46, 83, 50, 0.22); }
.brand-benefits svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-benefits b {
  display: block;
  color: #1c241d;
  font-size: 13px;
  margin-top: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.brand-proof { margin-top: 40px; max-width: 640px; }
.trust-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
  padding: 22px 8px;
}
.trust-panel div { text-align: center; padding: 4px 10px; }
.trust-panel div + div { border-left: 1px solid #e4e8e4; }
.trust-panel b,
.trust-panel span { display: block; }
.trust-panel b {
  font-family: 'Merriweather', Georgia, serif;
  font-size: 16px;
  color: var(--green);
}
.trust-panel span {
  font-size: 12px;
  margin-top: 6px;
  color: #2f3831;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
  padding: 4px 4px 0;
}
.trust-badges div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #425045;
  font-size: 12px;
  font-weight: 600;
}
.trust-badges svg {
  width: 18px;
  height: 18px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
  margin-top: 36px;
  padding: 16px;
  border: 1px solid rgba(46, 83, 50, 0.12);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(4px);
}
.trust-grid > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
}
.trust-grid svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
  margin-top: 2px;
}
.trust-grid b {
  display: block;
  font-size: 13px;
  color: #1d281f;
}
.trust-grid span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.form-side {
  padding: 42px clamp(24px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ivory);
}
.auth-card {
  width: min(100%, 620px);
  background: var(--card);
  border: 1px solid #e7ebe7;
  border-radius: 18px;
  padding: clamp(36px, 4.5vw, 58px);
  box-shadow: var(--shadow);
}

.card-heading { margin-bottom: 28px; }
.card-heading.centered { text-align: center; }
.card-heading h2 {
  font: 700 clamp(28px, 2.8vw, 40px)/1.15 'Merriweather', Georgia, serif;
  margin: 0 0 12px;
  color: var(--green);
  letter-spacing: -0.02em;
}
.card-heading p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.card-heading strong {
  display: inline-block;
  color: var(--green);
  font-weight: 700;
  margin-top: 6px;
}
.card-heading .ornament {
  display: block;
  width: 120px;
  height: 1px;
  background: var(--gold);
  margin: 16px auto 18px;
  position: relative;
}
.card-heading .ornament::after {
  content: '◇';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 0 6px;
  color: var(--gold);
  font-size: 10px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 26px;
}
.tabs button {
  height: 56px;
  border: 1px solid var(--line);
  background: #fff;
  color: #4a544d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: .18s ease;
}
.tabs button:first-child { border-radius: 10px 0 0 10px; }
.tabs button:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.tabs button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabs button.active {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
  box-shadow: inset 0 0 0 1px var(--green-line);
}
.tabs button.active + button,
.tabs button:has(+ .active) {
  border-color: var(--green-line);
}

form > label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 18px;
  color: #243028;
}
.input-wrap {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  background: #fff;
  transition: .18s ease;
}
.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 83, 50, 0.10);
}
.input-wrap input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}
.input-wrap input::placeholder { color: #8a938c; }
.prefix {
  flex: 0 0 auto;
  padding-left: 14px;
  color: #5a655d;
  font-weight: 700;
  font-size: 14px;
}
.phone-wrap { padding-left: 0; overflow: visible; }
.phone-wrap > input { padding-left: 12px; }
.country-picker { position: relative; flex: 0 0 auto; }
.country-trigger {
  height: 52px;
  min-width: 108px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #f7faf7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 12px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px 0 0 10px;
}
.country-trigger .vv-dropdown-chevron {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: none;
  color: #5a655d;
}
.country-trigger .vv-dropdown-chevron svg {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.country-trigger .vv-chevron-up { display: none; }
.country-trigger[aria-expanded="true"] .vv-chevron-down { display: none; }
.country-trigger[aria-expanded="true"] .vv-chevron-up { display: block; }
.country-flag {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
  flex: 0 0 auto;
  display: block;
}
.country-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: min(320px, 78vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
  padding: 8px;
}
.country-search {
  width: 100%;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 8px;
  outline: 0;
}
.country-search:focus { border-color: var(--green); }
.country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}
.country-option {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--ink);
}
.country-option:hover,
.country-option.is-selected { background: var(--green-soft); }
.country-name { flex: 1; font-size: 13px; }
.country-code { color: var(--green); font-weight: 700; font-size: 13px; }
.field-icon,
.reveal {
  flex: 0 0 46px;
  color: #617068;
  display: inline-grid;
  place-items: center;
  background: transparent;
  border: 0;
  cursor: default;
}
.reveal { cursor: pointer; }
.field-icon svg,
.reveal svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reveal .eye-closed { display: none; }
.reveal.is-visible .eye-open { display: none; }
.reveal.is-visible .eye-closed { display: block; }

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -2px 0 22px;
  font-size: 14px;
}
.form-row a,
.switch a,
.terms a,
.legal a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}
.form-row a:hover,
.switch a:hover,
.terms a:hover,
.legal a:hover { text-decoration: underline; }

.check {
  display: flex !important;
  align-items: center !important;
  font-weight: 500 !important;
  margin: 0 !important;
  cursor: pointer;
  color: #3d4740;
}
.check input { position: absolute; opacity: 0; }
.check > span {
  width: 20px;
  height: 20px;
  border: 1.5px solid #9aa59d;
  border-radius: 4px;
  margin-right: 10px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.check input:checked + span {
  background: var(--green);
  border-color: var(--green);
}
.check input:checked + span::after {
  content: '✓';
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.terms {
  font-size: 13px !important;
  flex-wrap: wrap;
  margin: 2px 0 22px !important;
  line-height: 1.5;
}

.primary {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
}
.primary:hover { background: #25462a; }
.primary-label {
  line-height: 1;
}
.primary-arrow {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 20px;
  font-size: 13px;
  color: #6a746d;
}
.divider::before,
.divider::after {
  content: '';
  height: 1px;
  flex: 1;
  background: #e4e8e4;
}

.socials {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.social-btn {
  width: 100%;
  height: 48px;
  border: 1px solid #d8ded8;
  border-radius: 999px;
  background: #fff;
  color: #2a332c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.social-btn:hover {
  border-color: #bcc7bd;
  background: #fafcfa;
}
.social-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.apple-icon { fill: #111; }

.outline {
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #36453a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.outline:hover {
  border-color: #c9d2cb;
  background: #fcfdfc;
}
.outline svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.new-account {
  background: linear-gradient(120deg, #f4f8f4, #f8fbf8);
  border: 1px solid #dfe8e0;
  border-radius: 12px;
  padding: 22px 24px;
  margin-top: 28px;
}
.new-account-copy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.leaf-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #e7f0e8;
  color: var(--green);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.leaf-badge svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.new-account b {
  font: 700 18px/1.25 'Merriweather', Georgia, serif;
  color: var(--green);
}
.new-account p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 4px 0 0;
}
.new-account a {
  height: 48px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  background: #fff;
}
.new-account a span {
  margin-left: 10px;
  font-size: 20px;
  font-weight: 400;
}

.legal,
.switch {
  text-align: center;
  color: #6a746d;
  font-size: 13px;
  line-height: 1.7;
  margin: 28px 0 0;
}
.switch { font-size: 14px; }

.verify-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: #eef3ee;
  color: var(--green);
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  position: relative;
}
.verify-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.verify-check {
  position: absolute;
  right: 6px;
  bottom: 8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
}
.verify-check svg {
  width: 14px;
  height: 14px;
  stroke: #fff;
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}
.otp-inputs input {
  width: 100%;
  height: 64px;
  border: 1.5px solid #d7ddd8;
  border-radius: 10px;
  text-align: center;
  font-family: 'Merriweather', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  outline: 0;
  color: var(--ink);
}
.otp-inputs input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(46, 83, 50, 0.10);
}

.resend {
  text-align: center;
  color: #616b64;
  font-size: 14px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.resend svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.resend button {
  border: 0;
  background: none;
  color: #1c241d;
  padding: 0;
  cursor: default;
  font-weight: 600;
}
.resend button:not(:disabled) {
  cursor: pointer;
  color: var(--green);
}
.resend b { color: var(--green); }

.secure-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: #f3f7f3;
  border: 1px solid #dce6dd;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 24px;
  color: #3d4a40;
}
.secure-note svg {
  width: 22px;
  height: 22px;
  stroke: var(--green);
  fill: none;
  stroke-width: 1.7;
  flex: 0 0 auto;
  margin-top: 1px;
}
.secure-note.spaced { margin-top: 24px; }

.alert {
  padding: 12px 14px;
  background: #f0f6f1;
  color: var(--green);
  border: 1px solid #d5e3d7;
  border-radius: 8px;
  margin: -8px 0 20px;
  font-size: 14px;
}
.alert.error {
  background: #fff3f1;
  color: #8f2f24;
  border-color: #f0d0cb;
}

@media (max-width: 1100px) {
  .auth-shell { grid-template-columns: 44% 56%; }
  .brand-panel { padding: 36px 28px; }
  .brand-copy h1 { font-size: 36px; }
  .brand-benefits li { padding: 0 10px; }
  .brand-benefits b { white-space: normal; }
  .form-side { padding: 28px; }
  .auth-card { padding: 40px 32px; }
}

@media (max-width: 820px) {
  .auth-shell { display: block; }
  .brand-panel {
    min-height: 260px;
    padding: 24px;
    background-position: center 70%;
    justify-content: flex-start;
  }
  .brand-logo { width: 84px; }
  .brand-tagline { font-size: 11px; }
  .brand-copy h1 { font-size: 28px; }
  .brand-copy > p,
  .brand-benefits,
  .brand-proof,
  .trust-grid { display: none; }
  .form-side {
    padding: 0 14px 36px;
    margin-top: -40px;
    position: relative;
    z-index: 3;
    background: transparent;
  }
  .auth-card {
    padding: 32px 20px;
    border-radius: 16px;
  }
  .card-heading h2 { font-size: 28px; }
  .otp-inputs { gap: 8px; }
  .otp-inputs input { height: 52px; font-size: 20px; }
  .tabs button span { font-size: 12px; }
}

@media (max-width: 400px) {
  .auth-card { padding: 28px 16px; }
  .tabs button { height: 50px; gap: 4px; padding: 0 6px; }
  .tabs button span { font-size: 11px; }
  .otp-inputs { gap: 6px; }
  .otp-inputs input { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
