:root {
  color-scheme: light;
  --ink: #102720;
  --muted: #61736c;
  --line: #d7e2dc;
  --green: #176b52;
  --green-strong: #0f503d;
  --lime: #d8f27c;
  --paper: #f2f6f2;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #132b25; }

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--ink);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(216, 242, 124, .18), transparent 28rem),
    linear-gradient(115deg, #132b25 0 48%, var(--paper) 48% 100%);
}

button,
input { font: inherit; }

:where(a, button, input):focus-visible {
  outline: 3px solid #55a98c;
  outline-offset: 3px;
}

.login-layout {
  display: grid;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(40px, 8vw, 130px);
  max-width: 1320px;
  margin: auto;
  padding: clamp(32px, 6vw, 84px);
}

.login-intro {
  max-width: 620px;
  color: #f4f8f6;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: white;
  text-decoration: none;
}

.login-brand > span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: var(--lime);
  color: #153228;
  font-size: 18px;
  font-weight: 850;
}

.login-brand strong {
  font-size: 15px;
  letter-spacing: .02em;
}

.eyebrow,
.step {
  margin: 54px 0 10px;
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.login-intro h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(42px, 6vw, 70px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: .98;
}

.intro-copy {
  max-width: 48ch;
  margin: 24px 0 34px;
  color: #b9cbc4;
  font-size: 16px;
}

.public-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 14px;
  background: rgba(255, 255, 255, .06);
  color: white;
  text-decoration: none;
}

.public-link > span:first-child {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: rgba(216, 242, 124, .13);
  color: var(--lime);
  font-size: 18px;
}

.public-link strong,
.public-link small { display: block; }

.public-link small {
  margin-top: 1px;
  color: #9eb5ad;
  font-size: 11px;
}

.login-card {
  width: 100%;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid rgba(215, 226, 220, .9);
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 30px 80px rgba(6, 29, 21, .24);
}

.card-heading .step {
  margin: 0 0 8px;
  color: var(--green);
}

.card-heading h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -.035em;
}

.card-heading > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
}

.login-error {
  margin: 22px 0 -4px;
  padding: 12px 14px;
  border: 1px solid #edcbbb;
  border-radius: 11px;
  background: #fff0e8;
  color: #8d3828;
}

form { margin-top: 26px; }

label {
  display: block;
  margin: 17px 0 7px;
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #becdc5;
  border-radius: 11px;
  background: white;
  color: var(--ink);
}

input:hover { border-color: #9eb4aa; }

button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 12px 16px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: white;
  font-weight: 750;
  cursor: pointer;
}

button:hover { background: var(--green-strong); }

.privacy-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 800px) {
  body { background: var(--paper); }

  .login-layout {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0;
    padding: 0 0 32px;
  }

  .login-intro {
    width: 100%;
    max-width: none;
    padding: 24px 18px 32px;
    background:
      radial-gradient(circle at 12% 0, rgba(216, 242, 124, .18), transparent 24rem),
      #132b25;
  }

  .eyebrow { margin-top: 28px; }

  .login-intro h1 {
    max-width: 13ch;
    font-size: clamp(37px, 11vw, 50px);
  }

  .intro-copy { margin: 18px 0 20px; }

  .public-link {
    display: flex;
    width: 100%;
    max-width: 400px;
  }

  .login-card {
    width: calc(100% - 28px);
    max-width: 520px;
    align-self: start;
    justify-self: center;
    margin-top: 18px;
    border-radius: 19px;
  }
}

@media (max-width: 420px) {
  .login-card { padding: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
