:root {
  --bg: #0a0a0a;
  --card: #141414;
  --card-border: #262626;
  --text: #f5f5f5;
  --muted: #8f8f8f;
  --accent: #c8ff2c;       /* electric lime */
  --accent-2: #ff4d2e;     /* warm orange */
  --error: #ff4d2e;
  --radius: 16px;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px;
  position: relative;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient gradient glow */
.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(600px circle at 20% 20%, rgba(200, 255, 44, 0.12), transparent 45%),
    radial-gradient(500px circle at 85% 80%, rgba(255, 77, 46, 0.10), transparent 45%);
  pointer-events: none;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: rgba(200, 255, 44, 0.08);
  border: 1px solid rgba(200, 255, 44, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.badge .dot {
  width: 6px;
  height: 6px;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 44, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 44, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(200, 255, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 44, 0); }
}

h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
  white-space: nowrap;
}

.subtitle {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 22px;
}

.requirement {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.requirement .ic {
  flex: none;
  font-size: 16px;
}

.requirement strong {
  color: var(--accent-2);
  font-weight: 700;
}

.field {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.input-wrap {
  display: flex;
  align-items: center;
  background: #0f0f15;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 255, 44, 0.18);
}

.input-wrap.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 77, 46, 0.16);
}

.prefix {
  padding-left: 14px;
  color: var(--muted);
  font-size: 15px;
}

input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  padding: 13px 14px;
  width: 100%;
}

input::placeholder {
  color: #55555f;
}

.error {
  display: block;
  color: var(--error);
  font-size: 12.5px;
  margin-top: 6px;
  min-height: 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.error.show {
  opacity: 1;
}

button[type="submit"] {
  position: relative;
  width: 100%;
  margin-top: 6px;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: #0a0a0a;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(200, 255, 44, 0.28);
}

button[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(200, 255, 44, 0.4);
}

button[type="submit"]:active {
  transform: translateY(0);
}

button[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: 0.75;
}

.spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.5px solid rgba(10, 10, 10, 0.3);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

button.loading .btn-label { opacity: 0; }
button.loading .spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

.fineprint {
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 16px;
}

/* Success state */
.success {
  text-align: center;
  padding: 12px 0;
  animation: rise 0.4s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.check {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(200, 255, 44, 0.3);
}

.success h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.success p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.success .count {
  margin-top: 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
}

.footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  text-align: center;
  color: #4a4a55;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

@media (max-width: 480px) {
  .card { padding: 32px 24px; }
  h1 { font-size: 22px; }
  .badge { font-size: 22px; }
}
