:root {
  /* Палитра: #020D2F #032C7D #0B41C9 #1D97F1 #C4C7F2 */
  --bg: #020d2f;
  --fg: #c4c7f2;
  --muted: rgba(196, 199, 242, 0.62);
  --card: #032c7d;
  --border: rgba(196, 199, 242, 0.14);
  --accent: #1d97f1;
  --accent-strong: #0b41c9;
  --accent-dim: rgba(29, 151, 241, 0.22);
  --danger: #ff7a7a;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(2, 13, 47, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bg-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(11, 65, 201, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 80%, rgba(29, 151, 241, 0.12), transparent 50%),
    linear-gradient(rgba(196, 199, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(196, 199, 242, 0.04) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  z-index: 0;
}

.shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  min-height: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
}

.card h1 {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.65rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.field input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 13, 47, 0.45);
  color: var(--fg);
  font: inherit;
}

.field input:focus {
  outline: 2px solid var(--accent-dim);
  border-color: rgba(29, 151, 241, 0.55);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #020d2f;
  border-color: rgba(196, 199, 242, 0.25);
}

.btn.primary:hover {
  filter: brightness(1.05);
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--fg);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.msg {
  min-height: 1.25rem;
  font-size: 0.9rem;
  margin: 0;
}

.msg.err {
  color: var(--danger);
}

.msg.ok {
  color: var(--accent);
}

.foot {
  margin: 1.5rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.foot a {
  color: var(--accent);
  text-decoration: none;
}

.foot a:hover {
  text-decoration: underline;
}

.facts {
  margin: 0 0 1rem;
  display: grid;
  gap: 0.75rem;
}

.facts > div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.5rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.facts dt {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-weight: 600;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
