@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.ttf') format('truetype-variations');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #02c651;
  --green-dark: #019d52;
  --ink: #111827;
  --muted: #667085;
  --line: rgba(17, 24, 39, 0.1);
  --panel: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 70px rgba(16, 24, 40, 0.13);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 40%, rgba(2, 198, 81, 0.14), transparent 27rem),
    radial-gradient(circle at 12% 12%, rgba(2, 198, 81, 0.07), transparent 18rem),
    radial-gradient(circle at 86% 18%, rgba(66, 153, 225, 0.07), transparent 19rem),
    linear-gradient(135deg, #f8fbf9 0%, #eef7f1 48%, #f7f9fc 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.page-wrap {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}

.brand img {
  height: 46px;
  width: auto;
  filter: drop-shadow(0 10px 18px rgba(2, 198, 81, 0.34));
}

.brand-title { font-weight: 800; color: #123a27; font-size: 17px; line-height: 1.15; }
.brand-subtitle { color: var(--green-dark); font-size: 13px; font-weight: 700; }

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--green), var(--green-dark));
}

h1 { margin: 4px 0 6px; font-size: 24px; color: #123a27; line-height: 1.1; }
.lead { margin: 0 0 18px; color: var(--muted); font-size: 14px; line-height: 1.5; }

label { display: block; font-size: 13px; color: #444; margin: 14px 0 6px; font-weight: 600; }
input[type="text"], input[type="email"] {
  width: 100%;
  padding: 12px 13px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #cfd8d2;
  border-radius: 10px;
  background: #fafbfa;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus { outline: none; border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(1,157,82,.15); background: #fff; }

.hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(2, 198, 81, 0.07);
  border: 1px solid rgba(2, 198, 81, 0.16);
  color: #344054;
  font-size: 13px;
  line-height: 1.5;
}
.hint strong { color: var(--green-dark); }

.btn {
  width: 100%;
  margin-top: 20px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(1, 157, 82, 0.2);
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.msg {
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.4;
  display: none;
}
.msg.show { display: block; animation: fade .2s ease; }
.msg.error { background: #fdecea; color: #b42318; border: 1px solid #f5c2bd; }
.msg.info { background: #eaf6f0; color: #0a7a43; border: 1px solid #bfe5cd; }

.steps { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; }
.step {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
}
.step.active { color: #fff; background: linear-gradient(135deg, var(--green), var(--green-dark)); border-color: transparent; }

.panel { display: none; }
.panel.active { display: block; }

.pin-input {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 28px;
  font-weight: 800;
  text-indent: 0.5em;
}

.email-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: #344054;
  font-size: 14px;
  font-weight: 600;
}

.footer { text-align: center; color: #999; font-size: 12px; }

@keyframes fade { from { opacity: 0; transform: translateY(-4px);} to { opacity: 1;} }
