:root {
  --ink: #10231d;
  --muted: #61736c;
  --green: #0e4b3c;
  --green-dark: #0a392e;
  --lime: #b4df7a;
  --paper: #f1f5f1;
  --line: #d9e4dc;
  --red: #a12626;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(180, 223, 122, .24), transparent 28rem),
    radial-gradient(circle at 90% 80%, rgba(14, 75, 60, .08), transparent 30rem),
    var(--paper);
}

.topbar {
  min-height: 78px;
  padding: 14px clamp(20px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(14, 75, 60, .09);
  background: rgba(247, 250, 247, .84);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: white;
  background: var(--green);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(14, 75, 60, .16);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 17px; letter-spacing: -.01em; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 13px; }

.environment {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--green-dark);
  background: #e1efd8;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
}

main {
  width: min(100% - 32px, 520px);
  margin: 0 auto;
  padding: clamp(48px, 10vh, 100px) 0 40px;
}

.login-card {
  padding: clamp(28px, 6vw, 48px);
  border: 1px solid rgba(14, 75, 60, .13);
  border-radius: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 30px 80px rgba(16, 35, 29, .12);
}

.security-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: #e8f4df;
}

.security-mark svg { width: 29px; fill: var(--green); }
.eyebrow { margin: 0 0 7px; color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 7vw, 43px); line-height: 1.06; letter-spacing: -.025em; }
.intro { margin: 18px 0 28px; color: var(--muted); font-size: 15px; line-height: 1.65; }

.steps { display: flex; align-items: center; margin: 0 0 30px; }
.step { display: flex; align-items: center; gap: 8px; color: #89978f; font-size: 12px; font-weight: 750; white-space: nowrap; }
.step b { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid #cad7ce; border-radius: 50%; font-size: 11px; }
.step.active { color: var(--green); }
.step.active b { border-color: var(--green); color: white; background: var(--green); }
.divider { height: 1px; flex: 1; margin: 0 12px; background: var(--line); }

button, input { width: 100%; border-radius: 12px; font: inherit; }
button { min-height: 50px; border: 0; padding: 12px 16px; color: white; background: var(--green); font-weight: 800; cursor: pointer; transition: background .15s ease, transform .15s ease; }
button:hover { background: var(--green-dark); transform: translateY(-1px); }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(180, 223, 122, .8); outline-offset: 2px; }
button:disabled { cursor: wait; opacity: .7; transform: none; }
.link-button { min-height: auto; padding: 6px; color: var(--green); background: transparent; font-size: 13px; }
.link-button:hover { background: transparent; text-decoration: underline; transform: none; }

form { display: grid; gap: 13px; }
label { color: #354a42; font-size: 13px; font-weight: 800; }
input { min-height: 56px; border: 1px solid #b8c9be; padding: 10px 16px; color: var(--ink); background: white; font-size: 24px; font-weight: 750; letter-spacing: .2em; text-align: center; }
input::placeholder { color: #b5c0b9; }
.helper { margin: 13px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.hidden { display: none !important; }
.status, .error { min-height: 21px; margin: 15px 0 0; font-size: 13px; line-height: 1.55; text-align: center; }
.status { color: var(--green); }
.error { color: var(--red); font-weight: 700; }

.trust-note {
  margin: 24px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
}

.trust-note svg { width: 18px; min-width: 18px; fill: var(--green); }

@media (max-width: 520px) {
  .topbar { padding-inline: 16px; }
  .brand small { display: none; }
  main { padding-top: 36px; }
  .login-card { border-radius: 21px; }
  .step { font-size: 0; }
  .step b { font-size: 11px; }
}

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