/* ============================================================
   APNA KAROBAR SYSTEM — register.css
   Reseller / Buyer / Vendor / Investor registration page
   Same brand system as home.css: white paper, black type, green accents
   ============================================================ */

/* ---------- Design tokens (kept self-contained, same values as home.css) ---------- */
:root {
  --paper: #ffffff;
  --paper-soft: #f7f9f6;
  --ink: #10140f;
  --ink-soft: #55605a;
  --ink-faint: #8a938c;

  --leaf: #2fa83f;
  --leaf-deep: #146b27;
  --leaf-bright: #6fd85a;
  --leaf-mist: #eaf7ea;
  --leaf-mist-2: #dcf3dc;

  --line: #e7e9e4;
  --line-strong: #d3d7cf;

  --shadow-sm: 0 2px 10px rgba(16, 20, 15, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 20, 15, 0.10);
  --shadow-green: 0 14px 30px rgba(47, 168, 63, 0.28);

  --radius: 16px;
  --radius-sm: 10px;

  --font-display: "Space Grotesk", "IBM Plex Sans", sans-serif;
  --font-body: "Inter", "IBM Plex Sans", sans-serif;

  --container: 1180px;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
p { margin: 0 0 12px; color: var(--ink-soft); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--leaf);
  display: inline-block;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--leaf) 0%, var(--leaf-deep) 100%);
  color: #ffffff;
  box-shadow: var(--shadow-green);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(47, 168, 63, 0.36); }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.logo-box { display: flex; align-items: center; gap: 10px; }
.header-logo-image {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: contain;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.logo-box .brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.logo-box .brand-name span { color: var(--leaf); }
.topbar-links { display: flex; align-items: center; gap: 18px; }
.topbar-links a { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.topbar-links a:hover { color: var(--leaf-deep); }

/* ============================================================
   AUTH LAYOUT — form left, growth panel right
   ============================================================ */
.auth-wrap { padding: 48px 0 24px; }
.auth-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 960px) {
  .auth-grid { grid-template-columns: 1fr; }
}

/* ---------- Form panel ---------- */
.form-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px;
}
.form-panel h2 {
  font-size: 26px;
  margin-bottom: 4px;
}
.form-panel .form-sub {
  margin-bottom: 24px;
  font-size: 14px;
}

.level-box {
  background: var(--leaf-mist);
  border: 1px solid var(--leaf-mist-2);
  border-left: 4px solid var(--leaf);
  padding: 20px 20px 6px;
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
}
.level-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  color: var(--leaf-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Second (or later) step in a multi-level form — same family, quieter accent
   so steps read as a sequence without turning into a rainbow of colors */
.level-box.step-2 {
  background: var(--paper-soft);
  border-color: var(--line);
  border-left-color: var(--ink);
}
.level-box.step-2 .level-title { color: var(--ink); }

.field {
  margin-bottom: 14px;
}
.form-panel input[type="text"],
.form-panel input[type="email"],
.form-panel input[type="password"],
.form-panel select {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--ink);
  margin-bottom: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-panel input::placeholder { color: var(--ink-faint); }
.form-panel input:focus,
.form-panel select:focus {
  outline: none;
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 168, 63, 0.15);
}
.form-panel select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355605a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}
.form-panel select:invalid { color: var(--ink-faint); }

.row { display: flex; gap: 12px; }
.row input { flex: 1; }
@media (max-width: 520px) { .row { flex-direction: column; gap: 0; } }

.password-box { position: relative; }
.password-box input { padding-right: 46px; }
.password-box span {
  position: absolute;
  right: 14px;
  top: 13px;
  cursor: pointer;
  font-size: 18px;
  user-select: none;
}

.switch-account {
  text-align: center;
  margin: 22px 0 4px;
  font-size: 14px;
}
.switch-account p { margin-bottom: 8px; color: var(--ink-faint); font-size: 13px; }
.switch-account .chip-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.switch-account a {
  font-weight: 700;
  font-size: 13px;
  color: var(--leaf-deep);
  background: var(--leaf-mist);
  padding: 7px 16px;
  border-radius: 999px;
  transition: background 0.15s ease;
}
.switch-account a:hover { background: var(--leaf-mist-2); }

.login-text {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}
.login-text a { color: var(--leaf-deep); font-weight: 700; }

.form-msg {
  display: none;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  background: var(--leaf-mist);
  color: var(--leaf-deep);
  border: 1px solid var(--leaf-mist-2);
}
.form-msg.show { display: block; }

/* ---------- Growth panel (right side) ---------- */
.growth-panel {
  background: var(--ink);
  border-radius: var(--radius);
  padding: 30px 28px;
  color: #fff;
  position: sticky;
  top: 90px;
  overflow: hidden;
}
.growth-panel .eyebrow { color: var(--leaf-bright); }
.growth-panel .eyebrow::before { background: var(--leaf-bright); }
.growth-panel h3 {
  color: #fff;
  font-size: 21px;
  margin-bottom: 6px;
}
.growth-panel p { color: #c7cec7; font-size: 14px; }

.growth-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin: 26px 0 10px;
  padding-top: 10px;
}
.growth-chart .gbar {
  flex: 1;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--leaf-bright), var(--leaf-deep));
  animation: growUp 1s ease both;
}
@keyframes growUp { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.growth-chart .gbar:nth-child(1) { height: 30%; animation-delay: .02s; }
.growth-chart .gbar:nth-child(2) { height: 45%; animation-delay: .08s; }
.growth-chart .gbar:nth-child(3) { height: 40%; animation-delay: .14s; }
.growth-chart .gbar:nth-child(4) { height: 62%; animation-delay: .2s; }
.growth-chart .gbar:nth-child(5) { height: 58%; animation-delay: .26s; }
.growth-chart .gbar:nth-child(6) { height: 80%; animation-delay: .32s; }
.growth-chart .gbar:nth-child(7) { height: 100%; background: linear-gradient(180deg, #ffffff, var(--leaf-bright)); animation-delay: .38s; }
.growth-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #8b958b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 26px;
}

.growth-stats { display: grid; gap: 14px; }
.growth-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
}
.growth-stat b {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--leaf-bright);
}
.growth-stat span { font-size: 12px; color: #b9c1b8; }

@media (max-width: 960px) {
  .growth-panel { position: static; }
}

/* ============================================================
   PRODUCTS RAIL (reused pattern below the form)
   ============================================================ */
.products-section { background: var(--paper-soft); padding: 56px 0; margin-top: 40px; }
.products-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.rail-btn:hover { background: var(--leaf); border-color: var(--leaf); transform: scale(1.05); }
.rail-btn:hover svg { stroke: #fff; }
.rail-btn svg { width: 18px; height: 18px; stroke: var(--ink); }

.products-rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  padding: 6px 6px 22px;
  margin: 0 -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--leaf) var(--line);
}
.products-rail::-webkit-scrollbar { height: 8px; }
.products-rail::-webkit-scrollbar-track { background: var(--line); border-radius: 8px; }
.products-rail::-webkit-scrollbar-thumb { background: linear-gradient(90deg, var(--leaf), var(--leaf-deep)); border-radius: 8px; }

.product-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 230px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card-img { width: 100%; height: 140px; object-fit: cover; background: var(--leaf-mist); }
.product-card-body { padding: 14px; }
.product-card h4 { font-size: 14px; margin-bottom: 6px; min-height: 36px; }
.product-price {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--leaf-deep);
  background: var(--leaf-mist);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

/* ============================================================
   FOOTER (minimal)
   ============================================================ */
.mini-footer {
  text-align: center;
  padding: 26px 0;
  font-size: 13px;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
