:root {
  --bg: #eef3f0;
  --panel: #ffffff;
  --ink: #17211d;
  --muted: #66756f;
  --line: #d8e1dc;
  --green: #1f7a58;
  --green-dark: #13523f;
  --blue: #245f9c;
  --red: #b33434;
  --shadow: 0 22px 70px rgba(23, 33, 29, .16);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,
input {
  font: inherit;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(390px, .72fr);
  min-height: 100vh;
}

.product-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(31, 122, 88, .16), rgba(36, 95, 156, .08)),
    #f7faf8;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 23px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.product-copy {
  max-width: 760px;
  padding: 64px 0 34px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.56;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1.2fr .86fr;
  grid-template-rows: repeat(2, minmax(132px, 1fr));
  gap: 14px;
  max-width: 860px;
}

.preview-card {
  min-height: 132px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 33, 29, .08);
}

.preview-card.large {
  grid-row: span 2;
}

.preview-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.feature-row span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .68);
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.auth-panel {
  display: grid;
  align-items: center;
  padding: clamp(22px, 4vw, 56px);
  background: var(--panel);
}

.auth-card {
  width: min(100%, 480px);
  margin: 0 auto;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-bottom: 34px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7faf8;
}

.tab {
  min-height: 42px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 33, 29, .08);
}

.auth-form {
  display: none;
}

.auth-form.active {
  display: grid;
  gap: 18px;
}

.form-title {
  margin-bottom: 8px;
}

.form-title h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: 0;
}

.form-title p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: #33413c;
  font-size: 13px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 88, .14);
}

.form-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -4px 0 2px;
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.checkbox input {
  width: 16px;
  height: 16px;
}

.checkbox span {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.primary-button {
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
}

.primary-button:disabled {
  cursor: progress;
  opacity: .78;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

@media (max-width: 980px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .product-panel {
    min-height: auto;
  }

  .product-copy {
    padding-top: 48px;
  }

  .auth-panel {
    padding-top: 36px;
  }
}

@media (max-width: 620px) {
  .product-panel,
  .auth-panel {
    padding: 22px;
  }

  h1 {
    font-size: 38px;
  }

  .lead {
    font-size: 16px;
  }

  .preview-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .preview-card.large {
    grid-row: auto;
  }

  .form-line {
    align-items: flex-start;
    flex-direction: column;
  }
}
