:root {
  --bg: #f4f7f5;
  --panel: #ffffff;
  --ink: #0f1a14;
  --muted: #667070;
  --brand: #1f9b55;
  --brand-dark: #14733f;
  --line: #e4e9e6;
  --soft: #f6f8f6;
  --radius: 16px;
  --shadow: 0 28px 60px rgba(14, 25, 19, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

h1,
h2 {
  font-weight: 600;
}

h1 {
  font-size: clamp(2.1rem, 3vw + 1rem, 2.8rem);
  letter-spacing: -0.02em;
}

h1 span {
  color: var(--brand);
}

h2 {
  font-size: 1.4rem;
}

p {
  color: var(--muted);
  line-height: 1.55;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 1.5rem;
  padding: 1.6rem clamp(1.4rem, 4vw, 4rem) 2.5rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--brand);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px 8px 8px;
  border-radius: 4px;
  background: #ffffff;
  transform: rotate(45deg);
  opacity: 0.9;
}

.brand-name {
  font-weight: 600;
  color: #0f2f1d;
}

.top-note {
  font-size: 0.85rem;
  color: #7a8582;
}

.hero {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.9fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
}

.hero-content {
  display: grid;
  gap: 1.2rem;
  max-width: 560px;
}

.pill {
  align-self: flex-start;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(31, 155, 85, 0.1);
  color: var(--brand-dark);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
}

.lead {
  font-size: 1rem;
}

.benefits {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.benefits li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #2a3a34;
  font-size: 0.95rem;
}

.benefits li::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(31, 155, 85, 0.15);
  border: 1px solid rgba(31, 155, 85, 0.25);
  display: inline-block;
  position: relative;
  box-shadow: inset 0 0 0 6px rgba(31, 155, 85, 0.12);
}

.login-panel {
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.card {
  width: min(360px, 100%);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.muted {
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

.form {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

input {
  font-family: inherit;
  padding: 0.8rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #d9dedc;
  background: var(--soft);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
  outline: none;
  border-color: rgba(31, 155, 85, 0.6);
  box-shadow: 0 0 0 3px rgba(31, 155, 85, 0.15);
}

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

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

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
}

.primary {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.primary:hover {
  background: var(--brand-dark);
}

.primary:active {
  transform: translateY(1px);
}

.link {
  background: none;
  color: var(--brand);
  font-size: 0.8rem;
  font-weight: 600;
}

.assist {
  font-size: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.footer-note {
  font-size: 0.75rem;
  color: #8a9491;
}

.error {
  color: #b12816;
  font-size: 0.85rem;
  min-height: 1.2rem;
  margin-top: 0.4rem;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

  .login-panel {
    justify-items: stretch;
  }

  .card {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
  }
}
