*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:  #0d4a2a;
  --green-mid:   #1a6b3a;
  --green-light: #2d9e5f;
  --green-pale:  #e8f5ed;
  --cream:       #faf9f5;
  --red:         #c0392b;
  --red-light:   #fdf2f2;
  --success:     #1e7e4a;
  --success-bg:  #edfbf3;
  --border:      #e0ddd4;
  --text:        #1a1a1a;
  --muted:       #6b7280;
  --light:       #9ca3af;
}

html, body {
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  overflow: hidden;
}

/* ── Layout ── */
.page {
  height: 100vh;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* ── Left Panel ── */
.left {
  flex: 1 1 55%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.left-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.left-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, #2d9e5f55 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, #0d4a2a88 0%, transparent 50%),
    linear-gradient(160deg, #0d4a2a 0%, #1a6b3a 40%, #2d9e5f 100%);
  display: none;
  align-items: center;
  justify-content: center;
}

.produce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 2rem;
  max-width: 340px;
}

.p-item {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  animation: floatIn 0.6s ease both;
}

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.8); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.p-item:nth-child(1)  { animation-delay: 0.10s }
.p-item:nth-child(2)  { animation-delay: 0.15s }
.p-item:nth-child(3)  { animation-delay: 0.20s }
.p-item:nth-child(4)  { animation-delay: 0.25s }
.p-item:nth-child(5)  { animation-delay: 0.30s }
.p-item:nth-child(6)  { animation-delay: 0.35s }
.p-item:nth-child(7)  { animation-delay: 0.40s }
.p-item:nth-child(8)  { animation-delay: 0.45s }
.p-item:nth-child(9)  { animation-delay: 0.50s }
.p-item:nth-child(10) { animation-delay: 0.55s }
.p-item:nth-child(11) { animation-delay: 0.60s }
.p-item:nth-child(12) { animation-delay: 0.65s }

/* ══════════════════════════════════════════
   IMAGE GRADIENT OVERLAY — rich multi-stop
══════════════════════════════════════════ */
.left-overlay {
  position: absolute;
  inset: 0;
  background:linear-gradient(175deg, rgba(13, 74, 42, 0.60) 0%, rgba(26, 107, 58, 0.25) 28%, rgb(0 0 0 / 74%) 52%, rgb(13 74 42 / 87%) 78%, rgb(8 40 20 / 62%) 100%);
}

/* ══════════════════════════════════════════
   LEFT CONTENT — centered, compact
══════════════════════════════════════════ */
.left-content {
  position: relative;
  z-index: 2;
  padding: 1.5rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Logo — centered, bigger */
.left-content .logo {
  display: flex;
  justify-content: center;
  margin-bottom: 0.8rem;
}

/* .left-content .logo img {
  filter: brightness(0) invert(1);
  max-height: 56px;
  width: auto;
  display: block;
} */

.left-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 16px 6px 8px;
  margin-bottom: 1rem;
}

.left-brand-icon {
  width: 26px; height: 26px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}

.left-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

/* Headline */
.left-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.1vw, 30px);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 0.55rem;
  text-shadow: 0 2px 14px rgba(0,0,0,0.65);
}

.left-headline em { font-style: italic; color: #7eebb5; }

/* Description */
.left-desc {
  font-size: 12.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.55;
  max-width: 320px;
  margin-bottom: 0.85rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.50);
}

/* Badges — centered row */
.left-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.badge {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 10.5px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Right Panel ── */
.right {
  flex: 0 0 400px;
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.4rem 2rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  animation: slideIn 0.5s cubic-bezier(.4,0,.2,1) both;
  min-height: 0;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Right panel logo row */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.logo-row .logo img {
  max-height: 65px;
  width: auto;
}

.logo-box {
  width: 30px; height: 30px;
  background: var(--green-mid);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.logo-name span { color: var(--green-mid); }

/* Form title — centered */
.form-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
  flex-shrink: 0;
  text-align: center;
}

.form-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0.85rem;
  flex-shrink: 0;
  text-align: center;
}
.form-sub a { color: var(--green-mid); font-weight: 600; text-decoration: none; }
.form-sub a:hover { text-decoration: underline; }

/* ── Grid rows ── */
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ── Fields ── */
.field { margin-bottom: 0; }

.field-wrap { margin-bottom: 0.55rem; }

.field label {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: 0.01em;
}

.req { color: var(--red); font-size: 11px; line-height: 1; }

.input-wrap { position: relative; }

.input-wrap input,
.input-wrap select {
  width: 100%;
  height: 35px;
  padding: 0 32px 0 9px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap select { appearance: none; cursor: pointer; }
.input-wrap input::placeholder { color: var(--light); }

.input-wrap input:focus,
.input-wrap select:focus {
  border-color: var(--green-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,107,58,0.10);
}

.input-wrap input.is-valid,
.input-wrap select.is-valid  { border-color: var(--success); background: var(--success-bg); }

.input-wrap input.is-invalid,
.input-wrap select.is-invalid { border-color: var(--red); background: var(--red-light); }

.i-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  font-size: 11px;
  color: var(--light);
  pointer-events: none;
  user-select: none;
  transition: color 0.2s;
}

.i-icon.eye-btn { pointer-events: auto; cursor: pointer; }
.i-icon.v-ok    { color: var(--success); font-size: 10px; font-style: normal; }
.i-icon.v-err   { color: var(--red); font-size: 10px; font-style: normal; }

.field-msg {
  display: block;
  visibility: hidden;
  min-height: 14px;
  font-size: 10px;
  margin-top: 1px;
  padding: 0 2px;
  font-weight: 500;
  line-height: 1.4;
}

.field-msg.show {
  visibility: visible;
  display: flex;
  align-items: center;
  gap: 3px;
}

.field-msg.e { color: var(--red); }
.field-msg.s { color: var(--success); }

/* ── Strength bar ── */
.sbar { display: none; gap: 3px; margin-top: 3px; }
.sbar.show { display: flex; }
.s-seg { flex: 1; height: 3px; border-radius: 99px; background: var(--border); transition: background 0.3s; }
.slabel { font-size: 9.5px; margin-top: 1px; font-weight: 500; display: none; min-height: 13px; }
.slabel.show { display: block; }

/* ── Terms ── */
.terms-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0.2rem 0 0.4rem;
  font-size: 11px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
  flex-shrink: 0;
}

.terms-row input[type=checkbox] {
  accent-color: var(--green-mid);
  width: 13px; height: 13px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.terms-row a { color: var(--green-mid); font-weight: 600; text-decoration: none; }
.terms-row.err-t { color: var(--red); }

.terms-msg {
  display: block;
  visibility: hidden;
  min-height: 14px;
  font-size: 10px;
  padding: 0 2px;
  font-weight: 500;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}
.terms-msg.show { visibility: visible; display: flex; align-items: center; gap: 3px; }
.terms-msg.e { color: var(--red); }

/* ── Buttons ── */
.btn-create {
  width: 100%;
  height: 38px;
  background: var(--green-mid);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

.btn-create:hover  { background: var(--green-dark); }
.btn-create:active { transform: scale(0.98); }
.btn-create.loading { pointer-events: none; opacity: 0.8; }

.divider {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10.5px;
  color: var(--light);
  margin-bottom: 0.55rem;
  flex-shrink: 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.btn-google {
  width: 100%;
  height: 36px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.btn-google:hover { background: #f8f8f8; border-color: #bbb; }

.g-icon {
  width: 17px; height: 17px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e0e0e0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

/* ── Success overlay ── */
.success-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,74,42,0.96);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.4s ease;
}

.success-overlay.show { display: flex; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.success-icon {
  width: 72px; height: 72px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  margin-bottom: 1.25rem;
  animation: popIn 0.5s cubic-bezier(.34,1.56,.64,1) 0.2s both;
}

@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.success-title {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.success-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.welcome-badge {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 8px 20px;
  color: #7eebb5;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
}

.btn-go {
  background: #fff;
  color: var(--green-dark);
  border: none;
  border-radius: 10px;
  padding: 12px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.1s, opacity 0.2s;
}

.btn-go:hover  { opacity: 0.9; }
.btn-go:active { transform: scale(0.97); }

/* ── Toast ── */
.toast {
  position: fixed;
  top: 18px; right: 18px;
  background: var(--green-dark);
  color: #fff;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9998;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
  max-width: 280px;
}

.toast.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .right { flex: 0 0 430px; padding: 1.6rem 2.5rem; }
  .left-headline { font-size: 34px; }
  .form-title { font-size: 20px; }
  .left-content .logo img { max-height: 62px; }
}

/* Medium Desktop (961–1199px) */
@media (max-width: 1199px) and (min-width: 961px) {
  .right { flex: 0 0 390px; }
  .left-headline { font-size: clamp(20px, 2.2vw, 28px); }
}

/* Small Desktop / Tablet landscape (780–960px) */
@media (max-width: 960px) {
  .right { flex: 0 0 340px; padding: 1.2rem 1.5rem; }
  .left-headline { font-size: clamp(16px, 2vw, 24px); }
  .left-desc { font-size: 12px; }
  .left-content .logo img { max-height: 48px; }
}

/* Tablet landscape (661–780px) */
@media (max-width: 780px) {
  .right { flex: 0 0 300px; padding: 1rem 1.1rem; }
  .left-headline { font-size: clamp(15px, 1.9vw, 20px); }
  .left-desc { font-size: 11.5px; max-width: 240px; }
  .left-badges { gap: 5px; }
  .badge { font-size: 9.5px; padding: 3px 7px; }
  .form-title { font-size: 15px; }
  .row2 { gap: 6px; }
  .input-wrap input, .input-wrap select { height: 33px; font-size: 11.5px; }
  .left-content .logo img { max-height: 42px; }
}

/* Mobile stacked (≤660px) */
@media (max-width: 660px) {
  html, body { height: auto; overflow: auto; }

  .page {
    flex-direction: column;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .left {
    flex: 0 0 240px;
    min-height: 240px;
  }

  /* Stronger bottom gradient on mobile */
  .left-overlay {
    background: linear-gradient(175deg, rgb(13 74 42 / 40%) 0%, rgb(3 57 24 / 49%) 28%, rgb(0 0 0 / 77%) 52%, rgb(0 18 8 / 82%) 78%, rgba(8, 40, 20, 0.97) 100%);
   
  }

  .left-content {
    padding: 1rem 1rem 1.25rem;
  }

  .left-content .logo img { max-height: 42px; margin-bottom: 0.5rem; }

  .left-headline { font-size: clamp(15px, 5vw, 20px); margin-bottom: 0.3rem; }
  .left-desc     { display: none; }
  .left-badges   { display: none; }

  .right {
    flex: none;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.25rem 1rem 2rem;
    overflow-y: visible;
    justify-content: flex-start;
  }

  /* Single column on mobile */
  .row2 { grid-template-columns: 1fr; gap: 0; }

  .form-title { font-size: 17px; }
  .form-sub   { font-size: 12px; margin-bottom: 0.75rem; }

  .input-wrap input, .input-wrap select {
    height: 40px;
    font-size: 14px;
    padding: 0 36px 0 11px;
  }

  .field label  { font-size: 12px; }
  .field-msg    { font-size: 10.5px; min-height: 15px; }
  .field-wrap   { margin-bottom: 0.6rem; }

  .btn-create   { height: 42px; font-size: 14px; }
  .btn-google   { height: 40px; font-size: 13px; }
  .terms-row    { font-size: 12px; }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
  .right { padding: 1rem 0.85rem 2rem; }
  .left  { flex: 0 0 200px; min-height: 200px; }
  .left-headline { font-size: 14px; }
  .input-wrap input, .input-wrap select { height: 38px; font-size: 13px; }
  .form-title { font-size: 15px; }
  .left-content .logo img { max-height: 36px; }
}

/* Very short screens — allow scrolling */
@media (max-height: 700px) and (min-width: 661px) {
  html, body { height: auto; overflow: auto; }
  .page { height: auto; min-height: 100vh; overflow: visible; }
  .right {
    overflow-y: visible;
    justify-content: flex-start;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem;
  }
}