:root {
  --green: #07c160;
  --green-dark: #06ad56;
  --danger: #e64340;
  --bg: #f2f4f6;
  --card: #ffffff;
  --text: #181818;
  --muted: #8a8f99;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.page {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 24px 20px calc(24px + env(safe-area-inset-bottom));
}

.card {
  width: 100%;
  max-width: 360px;
  padding: 32px 24px 28px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  text-align: center;
}

.logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

h1 {
  margin: 0 0 6px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.subtitle {
  margin: 0;
  min-height: 20px;
  font-size: 14px;
  color: var(--muted);
}

.state {
  margin-top: 24px;
}

.primary-btn {
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--green);
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease;
}

.primary-btn:active {
  background: var(--green-dark);
}

.primary-btn:disabled {
  opacity: 0.6;
}

.hint {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.spinner {
  width: 28px;
  height: 28px;
  margin: 0 auto 12px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.success-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.success-text {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  color: var(--green);
}

.error-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fdecea;
  color: var(--danger);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
}

.footer {
  font-size: 11px;
  color: #a8adb7;
  text-align: center;
}

.footer p {
  margin: 0;
}

.hidden {
  display: none !important;
}
