:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --bg: #f6f8fc;
  --ink: #16223b;
  --muted: #6a7589;
  --line: #e6ebf3;
  --white: #fff;
  --danger: #b42318;
  --ok: #1a7f37;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 30, 60, 0.04), 0 8px 24px rgba(16, 30, 60, 0.06);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: radial-gradient(900px 420px at 50% -8%, #eaf1ff 0%, transparent 62%), var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 48px;
}
.card {
  width: 100%;
  max-width: 520px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px 24px;
}
.logo {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 20px;
}
h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 8px;
  text-align: center;
}
.lead {
  color: var(--muted);
  text-align: center;
  margin: 0 0 22px;
  line-height: 1.5;
}
label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
}
.req {
  color: var(--danger);
}
input,
textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 11px 12px;
  border: 1px solid #c3ccdb;
  border-radius: 10px;
  background: #fbfcff;
  box-shadow: inset 0 1px 2px rgba(16, 30, 60, 0.05);
}
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
textarea {
  resize: vertical;
  min-height: 84px;
}
.btn {
  width: 100%;
  margin-top: 22px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--blue);
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.btn:hover {
  background: var(--blue-dark);
}
.btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.msg {
  margin-top: 14px;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}
.msg.err {
  color: var(--danger);
}
.msg.ok {
  color: var(--ok);
}
.foot {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 22px;
  text-align: center;
}
.foot a {
  color: var(--blue);
  text-decoration: none;
}
.done h1 {
  margin-top: 6px;
}
