*, *::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;
  --red-pale:     #fdecea;
  --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-x: hidden;
}

/* ══════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════ */
.page {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

/* ══════════════════════════════════════════
   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: flex;
  align-items: center;
  justify-content: center;
}

.produce-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 2rem;
  max-width: 360px;
}

.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: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: transform 0.3s;
  animation: floatIn 0.6s ease both;
}

.p-item:hover { transform: scale(1.08) rotate(-3deg); }

@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.62)   0%,
    rgba(26,107,58,0.28)  28%,
    rgba(0,0,0,0.08)      52%,
    rgba(13,74,42,0.82)   78%,
    rgba(8,40,20,0.97)   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 on left panel — white, 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: 28px; height: 28px;
  background: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

.left-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  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 */
.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: 2rem 2.5rem;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  animation: slideIn 0.5s cubic-bezier(.4,0,.2,1) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Logo row — centered, bigger */
.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.logo-row .logo img {
  max-height: 48px;
  width: auto;
  display: block;
}

.logo-box {
  width: 36px; height: 36px;
  background: var(--green-mid);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px;
}

.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  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: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}

.form-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ── Fields ── */
.field { margin-bottom: 1rem; }

.field label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.01em;
}

.req { color: var(--red); font-size: 12px; line-height: 1; }

.input-wrap { position: relative; }

.input-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 40px 0 12px;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--text);
  background: #fafafa;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.input-wrap input::placeholder { color: var(--light); }

.input-wrap input:focus {
  border-color: var(--green-mid);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,107,58,0.11);
}

.input-wrap input.is-valid  { border-color: var(--success); background: var(--success-bg); }
.input-wrap input.is-invalid { border-color: var(--red); background: var(--red-light); }

.input-icon {
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  cursor: pointer;
  font-size: 14px;
  color: var(--light);
  user-select: none;
  transition: color 0.2s;
}

.input-icon.valid-icon   { color: var(--success); font-size: 12px; }
.input-icon.invalid-icon { color: var(--red); font-size: 12px; }

.field-msg {
  display: none;
  font-size: 11px;
  margin-top: 3px;
  padding: 0 2px;
  font-weight: 500;
}

.field-msg.show { display: flex; align-items: center; gap: 4px; }
.field-msg.err  { color: var(--red); }
.field-msg.ok   { color: var(--success); }

/* ── Strength bar ── */
.strength-bar { display: none; gap: 4px; margin-top: 5px; }
.strength-bar.show { display: flex; }
.s-seg { flex: 1; height: 3px; border-radius: 99px; background: var(--border); transition: background 0.3s; }
.strength-label { font-size: 11px; margin-top: 3px; font-weight: 500; display: none; }
.strength-label.show { display: block; }

/* ── Remember / Forgot row ── */
.row-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0.2rem 0 1.1rem;
}

.remember {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--muted);
}

.remember input[type=checkbox] {
  accent-color: var(--green-mid);
  width: 13px; height: 13px;
  cursor: pointer;
}

.forgot {
  font-size: 12px;
  font-weight: 600;
  color: var(--green-mid);
  text-decoration: none;
}
.forgot:hover { text-decoration: underline; }

/* ── Buttons ── */
.btn-signin {
  width: 100%;
  height: 42px;
  background: var(--green-mid);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.1s;
  margin-bottom: 0.8rem;
  position: relative;
  overflow: hidden;
}

.btn-signin:hover  { background: var(--green-dark); }
.btn-signin:active { transform: scale(0.98); }
.btn-signin.loading { pointer-events: none; opacity: 0.8; }

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--light);
  margin-bottom: 0.8rem;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.btn-google {
  width: 100%;
  height: 40px;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 9px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background 0.2s, border-color 0.2s;
}
.btn-google:hover { background: #f8f8f8; border-color: #bbb; }

.g-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e0e0;
  flex-shrink: 0;
}
.g-icon svg { width: 14px; height: 14px; }

.signup-row {
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 1rem;
}
.signup-row a { color: var(--green-mid); font-weight: 600; text-decoration: none; }
.signup-row a:hover { text-decoration: underline; }

/* ── Toast ── */
.toast {
  position: fixed;
  top: 20px; right: 20px;
  background: var(--green-dark);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 9999;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════════════ */

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
  .right { flex: 0 0 440px; padding: 2.5rem 3rem; }
  .left-headline { font-size: 34px; }
  .form-title { font-size: 24px; }
  .left-content .logo img { max-height: 62px; }
  .logo-row .logo img { max-height: 65px; }
}

/* Medium Desktop (961–1199px) */
@media (max-width: 1199px) and (min-width: 961px) {
  .right { flex: 0 0 390px; padding: 2rem 2.25rem; }
  .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.5rem 1.75rem; }
  .left-headline { font-size: clamp(16px, 2vw, 24px); }
  .left-desc { font-size: 12px; }
  .left-content .logo img { max-height: 48px; }
  .logo-row .logo img { max-height: 40px; }
  .form-title { font-size: 20px; }
}

/* Tablet landscape (661–780px) */
@media (max-width: 780px) {
  .right { flex: 0 0 290px; padding: 1.25rem 1.25rem; }
  .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: 18px; }
  .input-wrap input { height: 36px; font-size: 12px; }
  .left-content .logo img { max-height: 42px; }
  .logo-row .logo img { max-height: 36px; }
  .btn-signin { height: 38px; font-size: 13px; }
  .btn-google { height: 36px; font-size: 12px; }
}

/* 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 panel — taller on mobile so image+text visible */
  .left {
    flex: 0 0 250px;
    min-height: 250px;
  }

  /* Stronger gradient on mobile for readability */
 .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 {
    padding: 1rem 1rem 1.25rem;
  }

  /* Logo visible and centered on mobile */
  .left-content .logo img {
    max-height: 44px;
    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 panel full width */
  .right {
    flex: none;
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border);
    padding: 1.5rem 1.1rem 2.5rem;
    overflow-y: visible;
    justify-content: flex-start;
  }

  .logo-row { margin-bottom: 1rem; }
  .logo-row .logo img { max-height: 44px; }

  .form-title { font-size: 20px; }
  .form-sub   { font-size: 12.5px; margin-bottom: 1.25rem; }

  /* Bigger tap targets on mobile */
  .input-wrap input {
    height: 44px;
    font-size: 15px;
    padding: 0 42px 0 13px;
  }

  .field label   { font-size: 13px; }
  .field-msg     { font-size: 11px; }
  .field         { margin-bottom: 1.1rem; }

  .btn-signin  { height: 46px; font-size: 15px; }
  .btn-google  { height: 44px; font-size: 14px; }
  .remember    { font-size: 13px; }
  .forgot      { font-size: 13px; }
  .signup-row  { font-size: 13px; margin-top: 1.25rem; }
}

/* Small mobile (≤400px) */
@media (max-width: 400px) {
  .right { padding: 1.25rem 0.9rem 2rem; }
  .left  { flex: 0 0 210px; min-height: 210px; }
  .left-headline { font-size: 14px; }
  .input-wrap input { height: 40px; font-size: 14px; }
  .form-title { font-size: 18px; }
  .left-content .logo img { max-height: 38px; }
  .logo-row .logo img { max-height: 38px; }
  .btn-signin { height: 42px; font-size: 14px; }
  .btn-google { height: 40px; font-size: 13px; }
}

/* 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.5rem;
    padding-bottom: 2rem;
  }
}