* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: radial-gradient(circle at 20% 10%, #1f2937 0, #111827 45%, #0b1220 100%);
  color: #e5e7eb;
}

.page {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
}

.panel {
  width: 100%;
  max-width: 360px;
  padding: 18px 16px;
  border-radius: 14px;
  background: rgba(17,24,39,0.92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
}

.title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 22px;
  color: #f3f4f6;
}

.nav-links {
  margin: 0 0 12px;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

.nav-links a { color: #58bc82; text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

.migrate-tip {
  margin: 0 0 10px;
  text-align: center;
  font-size: 12px;
  color: #fef3c7;
  background: rgba(245,158,11,.2);
  border: 1px solid rgba(245,158,11,.5);
  border-radius: 999px;
  padding: 7px 10px;
}

.steps {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.steps li {
  font-size: 11px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  color: #cbd5e1;
  padding: 6px 4px;
}
.steps li.active {
  color: #fff;
  border-color: rgba(129,140,248,.95);
  background: rgba(79,70,229,.35);
}

.form {
  --bg-light: #e5e7eb;
  --bg-dark: #111827;
  --clr: #58bc82;
  --clr-alpha: #1f2937;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: 100%;
}

.form .input-span {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form input[type="email"],
.form input[type="password"] {
  border-radius: .5rem;
  padding: 1rem .75rem;
  width: 100%;
  border: none;
  color: #f9fafb;
  background-color: var(--clr-alpha);
  outline: 2px solid #374151;
}

.form input[type="email"]:focus,
.form input[type="password"]:focus {
  outline: 2px solid var(--clr);
}

.label {
  align-self: flex-start;
  color: var(--clr);
  font-weight: 600;
}

.form .submit {
  padding: 1rem .75rem;
  width: 100%;
  border-radius: 3rem;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  color: #f0fdf4;
  border: none;
  cursor: pointer;
  transition: all 300ms;
  font-weight: 700;
  font-size: .95rem;
}

.form .submit:hover { filter: brightness(1.06); transform: translateY(-1px); }
.form .submit:disabled { opacity: .65; cursor: not-allowed; }

.span { text-decoration: none; color: #cbd5e1; font-size: 13px; }
.span a { color: var(--clr); }

.notice {
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: #1e3a8a;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 8px;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, .7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: #111827;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px;
  padding: 14px;
  color: #e5e7eb;
}
.modal-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.modal-card p {
  margin: 6px 0;
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.5;
}
.modal-btn {
  margin-top: 10px;
  width: 100%;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
  color: #fff;
  font-weight: 700;
}

@media (max-width: 480px) {
  .page {
    padding: 10px;
    align-items: flex-start;
  }

  .panel {
    margin-top: 8px;
    max-width: 100%;
    border-radius: 12px;
    padding: 14px 12px;
  }

  .title { font-size: 20px; }
  .nav-links { font-size: 12px; }

  .steps { grid-template-columns: repeat(2, 1fr); gap: 5px; }
  .steps li { font-size: 10px; padding: 6px 2px; }

  .form { gap: .8rem; }
  .form input[type="email"],
  .form input[type="password"],
  .form .submit {
    min-height: 46px;
    font-size: 16px;
  }

  .modal-card {
    max-width: 100%;
    border-radius: 10px;
  }
}
