/* login.css */
body { margin: 0; }

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT */
.auth-left {
  position: relative; overflow: hidden;
}
.auth-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  position: absolute; inset: 0;
}
.auth-left-overlay {
  position: relative; z-index: 1;
  background: linear-gradient(to top, rgba(10,30,15,0.92) 0%, rgba(10,30,15,0.4) 60%, transparent 100%);
  height: 100%; padding: 48px 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.auth-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800; font-size: 18px; color: #fff;
  letter-spacing: -0.3px; position: absolute; top: 40px; left: 40px;
}
.auth-logo span { color: var(--gold); }
.auth-tagline {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(32px, 4vw, 48px); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 12px;
}
.auth-sub { font-size: 15px; color: rgba(255,255,255,0.65); margin: 0; }

/* RIGHT */
.auth-right {
  background: var(--bg-cream);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; overflow-y: auto;
}
.auth-box {
  width: 100%; max-width: 460px;
}

/* STEP INDICATOR */
.step-indicator {
  display: flex; align-items: center; margin-bottom: 36px;
}
.si-step {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.si-step span {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; transition: all 0.3s;
}
.si-step small {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.5px; text-transform: uppercase;
}
.si-step.active span  { background: var(--dark-green); color: #fff; }
.si-step.done span    { background: var(--accent-green); color: #fff; }
.si-step.active small { color: var(--dark-green); }
.si-step.done small   { color: var(--accent-green); }
.si-line {
  flex: 1; height: 2px; background: var(--border);
  margin: 0 8px 16px; transition: all 0.3s;
}
.si-line.done { background: var(--accent-green); }

/* STEP */
.auth-step { animation: fadeUp 0.35s ease both; }
.auth-step.hidden { display: none !important; }
.step-title { font-size: 26px; font-weight: 800; color: var(--dark-green); margin-bottom: 5px; }
.step-desc  { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }

/* FORM */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }

.phone-input { display: flex; gap: 0; }
.phone-prefix {
  background: var(--pale-green); border: 1.5px solid var(--border);
  border-right: none; border-radius: 10px 0 0 10px;
  padding: 0 14px; display: flex; align-items: center;
  font-size: 14px; font-weight: 600; color: var(--dark-green);
  white-space: nowrap;
}
.phone-input .form-input { border-radius: 0 10px 10px 0; }

/* FARMER OPTIONS */
.farmer-question { margin-bottom: 20px; }
.farmer-q-label { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 12px; }
.farmer-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.farmer-option { cursor: pointer; }
.farmer-option input { display: none; }
.farmer-option-box {
  border: 2px solid var(--border); border-radius: 14px; padding: 18px 14px;
  text-align: center; transition: all 0.2s;
}
.farmer-option input:checked + .farmer-option-box {
  border-color: var(--dark-green); background: #f0fdf4;
  box-shadow: 0 0 0 3px rgba(26,58,42,0.08);
}
.farmer-emoji  { font-size: 28px; display: block; margin-bottom: 8px; }
.farmer-opt-title { font-size: 14px; font-weight: 700; color: var(--text-dark); }
.farmer-opt-sub   { font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* OTP */
.otp-icon { font-size: 48px; text-align: center; margin-bottom: 12px; }
.otp-inputs {
  display: flex; gap: 10px; justify-content: center;
  margin: 24px 0;
}
.otp-box {
  width: 52px; height: 60px; border-radius: 12px;
  border: 2px solid var(--border); background: var(--bg-white);
  font-size: 24px; font-weight: 800; text-align: center;
  font-family: 'Outfit', sans-serif; color: var(--dark-green);
  outline: none; transition: all 0.2s;
}
.otp-box:focus { border-color: var(--dark-green); box-shadow: 0 0 0 3px rgba(26,58,42,0.1); }
.otp-box.filled { border-color: var(--accent-green); background: #f0fdf4; }
.otp-error { color: #dc2626; font-size: 13px; text-align: center; margin-top: -12px; margin-bottom: 12px; }

.resend-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 12px; }
.resend-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--accent-green);
  text-decoration: underline;
}

/* NAV */
.step-nav { display: flex; gap: 12px; margin-top: 8px; }
.auth-next-btn { width: 100%; justify-content: center; padding: 13px; font-size: 15px; border-radius: 12px; }
.auth-back-btn { padding: 13px 20px; border-radius: 12px; }
.auth-login-link { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 16px; }
.auth-login-link a { color: var(--accent-green); font-weight: 600; }

/* ERROR */
.auth-error {
  background: #fee2e2; border: 1px solid #fecaca; border-radius: 10px;
  padding: 12px 16px; font-size: 13px; color: #dc2626;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { height: 200px; }
  .form-row { grid-template-columns: 1fr; }
  .farmer-options { grid-template-columns: 1fr; }
}
