:root {
  --bg:#ffffff; --text:#0f172a; --muted:#64748b; --blue:#2563eb; --green:#16a34a; --error:#dc2626;
}
* { box-sizing:border-box; }
html,body { margin:0; background:var(--bg); color:var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Apple SD Gothic Neo, Noto Sans KR, Arial; }

.wrap { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }

.center { text-align:center; }
.brand { font-weight:800; letter-spacing:.4px; margin-bottom:8px; }
.headline { font-size:28px; margin:8px 0 6px; }
.sub { color:var(--muted); margin:0 0 16px; }

.tos { color:var(--muted); font-size:13px; margin-top:10px; }
.link { color:var(--blue); text-decoration:none; }

.btn-primary, .btn-secondary {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 18px; border-radius:12px; border:1px solid transparent; cursor:pointer; font-weight:700;
}
.btn-primary { background:var(--blue); color:#fff; }
.btn-primary[disabled] { opacity:.6; cursor:not-allowed; }
.btn-secondary { background:#eef2ff; color:#1e3a8a; }
.btn-secondary[disabled]{ opacity:.6; cursor:not-allowed; }

.flow { margin-top: 10px; }
.prompt { margin: 24px auto; max-width: 640px; }
.q { font-size:22px; font-weight:800; margin-bottom:10px; }
.inp.big {
  width:100%; font-size:20px; padding:16px 18px; border-radius:14px; border:1px solid #e5e7eb; outline:none;
}
.inp.big:focus { border-color:#c7d2fe; box-shadow:0 0 0 4px rgba(37,99,235,.12); }

.hint { font-size:13px; color:var(--muted); margin-top:8px; }

.code-row { display:flex; gap:10px; align-items:center; }
.code-row .inp.big { flex:1; }

#msg .success { background:#ecfdf5; color:#065f46; border:1px solid #bbf7d0; padding:12px; border-radius:12px; }
#msg .error { background:#fef2f2; color:#991b1b; border:1px solid #fecaca; padding:12px; border-radius:12px; }

/* Loading indicator block */
#msg .loading {
  display:flex; align-items:center; gap:12px;
  background:#f8fafc; color:#0f172a; border:1px solid #e2e8f0; padding:12px; border-radius:12px;
}
.spin {
  width:18px; height:18px; border:3px solid #cbd5e1; border-top-color: var(--blue);
  border-radius:50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.footer { margin-top:28px; font-size:12px; color:var(--muted); text-align:center; }

.hidden { display:none; }

/* Success page */
.checkmark {
  width:96px; height:96px; line-height:96px; margin:24px auto 8px;
  border-radius:50%; background:#dcfce7; color:#166534; font-size:56px; font-weight:900; text-align:center;
}
.success-title { margin:8px 0; }
.success-text {
  color:#1e3a8a;        /* dark blue */
  font-weight:800;      /* bold */
  font-size:20px;       /* bigger */
  margin-bottom:18px;
}
