/* =========================================================================
   Tú Produce Console — sign in, request access, password reset
   A split canvas: an orchard panel that carries the brand, and a calm
   form column. The panel is decoration; the form is the product.
   ========================================================================= */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background: var(--surface);
}

/* ---- Left: the orchard panel ------------------------------------------ */
.stage {
  position: relative;
  overflow: hidden;
  background: var(--canopy-deep);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 44px 40px;
  color: #EAF3E0;
  isolation: isolate;
}
.stage__art {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.stage__art svg { width: 100%; height: 100%; object-fit: cover; }

.stage__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stage .brandmark__name { color: #FFFFFF; }
.stage .brandmark__sub  { color: rgba(234,243,224,.66); }
.stage .brandmark__glyph { background: rgba(255,255,255,.14); backdrop-filter: blur(2px); }

.stage__locale {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(234,243,224,.72);
  border: 1px solid rgba(234,243,224,.24);
  border-radius: var(--r-pill);
  padding: 5px 12px;
}

.stage__copy { max-width: 460px; }
.stage__tagline {
  font-family: var(--display);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: #FFFFFF;
  margin-bottom: 16px;
}
.stage__lede {
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(234,243,224,.80);
  max-width: 38ch;
}

.stage__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.stage__stat {
  border: 1px solid rgba(234,243,224,.20);
  background: rgba(13,17,10,.28);
  backdrop-filter: blur(6px);
  border-radius: var(--r-md);
  padding: 11px 14px;
  min-width: 118px;
}
.stage__stat b {
  display: block;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
}
.stage__stat span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(234,243,224,.64);
}

.stage__foot {
  font-size: 12.5px;
  color: rgba(234,243,224,.58);
  display: flex;
  gap: 8px;
  align-items: center;
}

/* ---- Right: the form column ------------------------------------------- */
.panel {
  display: flex;
  flex-direction: column;
  padding: 28px 6vw 26px;
  background: var(--surface);
}
.panel__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-height: 40px;
}
.panel__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 0;
}
.panel__inner { width: 100%; max-width: 396px; margin: 0 auto; }

.panel__mark { display: none; margin-bottom: 26px; }

.panel h1 {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 9px;
}
.panel__lede { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 26px; }
.panel__lede strong { color: var(--ink); font-weight: 600; }

.form { display: grid; gap: 17px; }
.form__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
}
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--canopy); }

.panel__alt {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  text-align: center;
}
.panel__alt a { font-weight: 600; }

.panel__foot { padding-top: 22px; }

/* ---- The one-time code step ------------------------------------------- */
.step[hidden] { display: none; }

.codeback {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.codeback:hover { color: var(--canopy); }

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 9px;
}
.otp input {
  height: 60px;
  text-align: center;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.otp input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--sprout);
  box-shadow: var(--ring);
}
.otp input:not(:placeholder-shown) { background: var(--surface); border-color: var(--canopy); }
.otp[data-state="error"] input { border-color: var(--critical); }

.resend {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.resend button {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--canopy);
  cursor: pointer;
}
.resend button:disabled { color: var(--ink-3); cursor: not-allowed; font-weight: 500; }

.notice {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--r-md);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--wash-2);
  border: 1px solid var(--wash);
  color: var(--ink-2);
}
.notice svg { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--canopy); }
.notice--sent { background: rgba(12,163,12,.10); border-color: rgba(12,163,12,.26); }
.notice--sent svg { color: var(--good-ink); }
.notice--error { background: rgba(208,59,59,.09); border-color: rgba(208,59,59,.26); color: var(--critical-ink); }
.notice--error svg { color: var(--critical); }
.notice[hidden] { display: none; }

/* ---- Sent / success state --------------------------------------------- */
.sent__glyph {
  width: 54px; height: 54px;
  border-radius: 17px;
  background: var(--wash);
  color: var(--canopy);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.sent__glyph svg { width: 26px; height: 26px; }
.sent__addr {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 3px 8px;
  display: inline-block;
}

/* ---- Request-access extras -------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
select.input { appearance: none; padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

/* ---- Narrow screens ---------------------------------------------------- */
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; }
  .stage { display: none; }
  .panel { padding: 22px 24px 24px; }
  .panel__mark { display: block; }
  .panel__body { justify-content: flex-start; padding: 10px 0 28px; }
  .otp { gap: 7px; }
  .otp input { height: 54px; font-size: 21px; }
}
