/* ============================================================
   ZenKoszyk — auth pages (login / register / forgot-password)
   Two-column shell: brand panel left, form right (stacked < 960).
   ============================================================ */
:root {
  --green: #38A63F;
  --green-2: #2d8a33;
  --green-deep: #1f5e23;
  --green-soft: #d8efd9;
  --green-mint: #ebf7ec;
  --green-wash: #f3faf3;
  --bg: #ffffff;
  --ink: #171B1D;
  --ink-2: #3b4147;
  --muted: #7e858d;
  --line: #ececea;
  --display: 'Bricolage Grotesque', ui-serif, Georgia, serif;
  --body: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --shadow-card: 0 1px 2px rgba(23,27,29,.04), 0 12px 30px -10px rgba(23,27,29,.10);
  --shadow-card-lg: 0 1px 2px rgba(23,27,29,.04), 0 30px 60px -20px rgba(23,27,29,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ===== SHELL ===== */
.auth-shell {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  min-height: 100vh;
}

/* ===== BRAND PANEL ===== */
.brand-panel {
  position: relative;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255,255,255,.18), transparent 65%),
    radial-gradient(ellipse 60% 50% at 90% 90%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(155deg, #2f8a35 0%, #38A63F 55%, #61CA68 130%);
  overflow: hidden;
}
.brand-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.10) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
  opacity: .8;
}
.brand-logo { position: relative; z-index: 1; display: inline-flex; }
.brand-logo img { height: 44px; width: auto; filter: brightness(0) invert(1); }

.brand-stack {
  position: relative;
  z-index: 1;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand-stack h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  margin: 0;
  color: #fff;
}
.brand-stack h2 .green-text { color: #d3fdd6; }
.brand-stack p { margin: 0; color: rgba(255,255,255,.85); font-size: 17px; line-height: 1.55; }

.brand-list { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 12px; }
.brand-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255,255,255,.92); }
.brand-list .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'><path d='M2 6l3 3 5-6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-position: center; background-repeat: no-repeat; background-size: 60%;
}

.back-home {
  position: relative; z-index: 1;
  font-size: 14px; color: rgba(255,255,255,.75); font-weight: 500;
  transition: color .15s ease;
}
.back-home:hover { color: #fff; }

/* ===== FORM PANEL ===== */
.form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background:
    radial-gradient(ellipse 70% 36% at 80% 6%, rgba(56,166,63,.10), transparent 60%),
    radial-gradient(ellipse 60% 30% at 10% 95%, rgba(56,166,63,.06), transparent 65%),
    #fff;
}
.form-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 40px 40px 36px;
  box-shadow: var(--shadow-card-lg);
}
.form-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  margin-bottom: 28px;
  position: relative;
}
.form-head .mark { width: 56px; height: auto; margin-bottom: 8px; }
.form-head h1 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 2.4vw, 32px);
  margin: 0;
  color: var(--ink);
}
.form-head .tag { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.form-head .back-btn {
  position: absolute;
  left: -8px; top: 4px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: grid; place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.form-head .back-btn:hover { background: var(--green-2); transform: scale(1.05); }

/* ===== FORM CONTROLS ===== */
form { display: flex; flex-direction: column; gap: 16px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .label-row label {
  font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em;
}
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.label-row .forgot { font-size: 12.5px; font-weight: 600; color: var(--green-2); transition: color .15s; }
.label-row .forgot:hover { color: var(--green-deep); text-decoration: underline; }

.input-wrap { position: relative; }
.field input {
  width: 100%;
  font: inherit;
  font-size: 15px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
}
.input-wrap input { padding-right: 48px; }
.field input::placeholder { color: #b9bdc0; }
.field input:hover { border-color: #cfd5db; }
.field input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(56,166,63,.12); }

.eye {
  position: absolute; right: 8px; top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--muted);
  transition: color .15s ease, background .15s ease;
}
.eye:hover { color: var(--ink); background: var(--green-wash); }
.eye svg { width: 20px; height: 20px; }

.password-hint { font-size: 12.5px; color: var(--muted); margin: -6px 0 0; }

.remember {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer;
  margin-top: 4px;
}
.remember input {
  width: 18px; height: 18px;
  accent-color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
}
.remember a { color: var(--green-2); text-decoration: underline; }

.btn-green {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 16px 22px;
  border-radius: 100px;
  font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px -8px rgba(56,166,63,.55);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  margin-top: 8px;
}
.btn-green:hover:not(:disabled) { background: var(--green-2); transform: translateY(-1px); }
.btn-green:disabled { background: #d9dde0; color: #ffffff; box-shadow: none; cursor: not-allowed; }
.btn-green.as-link { display: inline-flex; text-align: center; }

/* ===== OR DIVIDER + SOCIALS ===== */
.or-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 22px 0 16px;
  color: var(--muted); font-size: 13px;
}
.or-divider::before, .or-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--line);
}
.socials { display: flex; gap: 14px; justify-content: center; }
.social-btn {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.social-btn:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-card); }

.bottom-line {
  text-align: center;
  font-size: 14.5px;
  color: var(--muted);
  margin: 22px 0 16px;
}
.bottom-line a { color: var(--green-2); font-weight: 700; }
.bottom-line a:hover { text-decoration: underline; }

.guest-btn {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--green);
  border-radius: 100px;
  padding: 12px 18px;
  color: var(--green-2);
  font-size: 14.5px; font-weight: 600;
  transition: background .15s ease;
}
.guest-btn:hover { background: var(--green-wash); }
.guest-btn .guest-ico {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-2);
  display: grid; place-items: center; flex-shrink: 0;
}
.guest-btn .guest-ico svg { width: 18px; height: 18px; }

/* ===== FORGOT PW STATES ===== */
.state-form .hero-illu, .state-success .success-ico {
  display: flex; justify-content: center;
  margin: 0 0 20px;
}
.state-lead {
  text-align: center;
  font-size: 15px;
  color: var(--ink-2);
  margin: 0 0 22px;
}
.success-title {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(26px, 2.4vw, 32px);
  text-align: center;
  margin: 0 0 8px;
  color: var(--ink);
}
.text-link {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  font-size: 14px; font-weight: 600;
  color: var(--green-2);
}
.text-link:hover { color: var(--green-deep); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .brand-panel { padding: 32px 28px; gap: 24px; }
  .brand-stack h2 { font-size: 28px; }
  .brand-list { display: none; }
  .form-panel { padding: 32px 20px; }
  .form-card { padding: 32px 28px; border-radius: 24px; }
}
@media (max-width: 560px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-card { padding: 28px 22px; }
  .form-head .back-btn { position: static; align-self: flex-start; margin-bottom: 4px; }
}
