:root {
  --blue: #1a73e8;
  --blue-dark: #1559b8;
  --orange: #f39019;
  --ink: #0f1b2d;
  --muted: #6b7687;
  --bg: #ffffff;
  --line: #e7ebf1;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(26, 115, 232, 0.08), transparent 60%),
    radial-gradient(800px 400px at 50% 110%, rgba(243, 144, 25, 0.06), transparent 60%),
    #fff;
}

.wrap {
  width: 100%;
  max-width: 520px;
  text-align: center;
}

.logo {
  width: 220px;
  max-width: 70%;
  height: auto;
  margin-bottom: 36px;
}

h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 auto 28px;
  max-width: 440px;
}

.signup {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 1px 2px rgba(15, 27, 45, 0.04);
  transition: border-color .2s, box-shadow .2s;
}

.signup:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}

.signup input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  min-width: 0;
}

.signup input::placeholder { color: #9aa4b4; }

.signup button {
  border: 0;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s, transform .1s;
}

.signup button:hover { background: var(--blue-dark); }
.signup button:active { transform: scale(0.98); }

.msg {
  min-height: 1.25em;
  font-size: 0.9rem;
  margin: 14px 0 0;
}
.msg.ok { color: var(--blue); }
.msg.err { color: #c2410c; }

footer {
  margin-top: 56px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover { color: var(--blue); }

@media (max-width: 480px) {
  .signup { flex-direction: column; padding: 8px; }
  .signup button { width: 100%; padding: 13px; }
  footer { flex-direction: column; text-align: center; gap: 6px; }
}
