/* ===== Register Page Styles ===== */
:root {
  --bg: #FAF7F2;
  --bg-card: #FFFBF5;
  --accent: #E8A850;
  --accent-deep: #D4923A;
  --accent-light: #FDF0DD;
  --text: #2C2416;
  --text-muted: #6B5E4A;
  --text-light: #9B8E7A;
  --border: #E8DFD0;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

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

.register-body {
  font-family: 'Noto Sans SC', 'PingFang SC', sans-serif;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.register-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.register-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 32px;
  transition: color 0.2s;
}
.register-back:hover { color: var(--text); }

.register-step { }
.register-step.hidden { display: none; }

h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 8px;
}
.register-sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

/* ── Plan Cards ─────────────────── */
.register-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.reg-plan-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.reg-plan-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(44,36,22,0.08);
}
.reg-plan-card.selected {
  border-color: var(--accent);
  background: var(--accent-light);
}

.reg-plan-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: #F0EDE4;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.reg-plan-badge--hot {
  background: #FFE8D6;
  color: var(--accent-deep);
}

.reg-plan-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.reg-plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
}
.reg-plan-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}
.reg-plan-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.reg-plan-card ul {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 2;
}

@media (max-width: 520px) {
  .register-plans { grid-template-columns: 1fr; }
}

/* ── Disclaimer ─────────────────── */
.disclaimer-banner {
  background: #FFF8E7;
  border: 1px solid #F0D58A;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.85rem;
  color: #8B6914;
  line-height: 1.6;
}

/* ── Generic Text Input ─────────── */
.reg-text-input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--bg-card);
  transition: border-color 0.2s;
  color: var(--text);
}
.reg-text-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ── Step 2: Profile ────────────── */
.register-section {
  margin-bottom: 28px;
}
.register-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--text);
}

/* Status Picker */
.status-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.status-option {
  cursor: pointer;
}
.status-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.status-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.2s;
}
.status-option input:checked + .status-card {
  border-color: var(--accent);
  background: var(--accent-light);
}
.status-card:hover {
  border-color: var(--accent-deep);
}
.status-icon {
  font-size: 1.5rem;
}
.status-card strong {
  font-size: 0.9rem;
  color: var(--text);
}
.status-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 400px) {
  .status-options { grid-template-columns: 1fr; }
}

/* Email Visibility Toggle */
.toggle-row {
  display: flex;
  gap: 12px;
}
.toggle-label {
  flex: 1;
  cursor: pointer;
}
.toggle-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.toggle-card {
  display: block;
  text-align: center;
  padding: 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.toggle-label input:checked + .toggle-card {
  border-color: var(--accent);
  background: var(--accent-light);
}

/* Registration Methods Box */
.reg-method-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.reg-method-box h4 {
  font-size: 1rem;
  margin-bottom: 16px;
}
.reg-method-box input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  margin-bottom: 12px;
  background: var(--bg);
  transition: border-color 0.2s;
}
.reg-method-box input:focus {
  outline: none;
  border-color: var(--accent);
}
.privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Buttons */
.btn-register {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-pill);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-email {
  background: var(--accent);
  color: #FFFDF7;
}
.btn-email:hover { background: var(--accent-deep); }
.btn-email:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-google {
  background: #FFF;
  color: var(--text);
  border: 2px solid var(--border);
}
.btn-google:hover { background: #F5F2EC; }

.divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--text-light);
  font-size: 0.85rem;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Status message */
.reg-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}
.reg-status.hidden { display: none; }
.reg-status.error {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.reg-status.success {
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
}

/* ── Toast ──────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  animation: toastIn 0.3s ease;
  pointer-events: auto;
}
.toast--success { background: #DCFCE7; color: #166534; }
.toast--error { background: #FEE2E2; color: #991B1B; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
