:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --error: #dc2626;
  --success: #16a34a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 440px;
  margin: 7vh auto;
  padding: 0 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

h1 { font-size: 1.75rem; margin: 0 0 .35rem; font-weight: 700; }
h2 { font-size: 1.25rem; margin: 0 0 .35rem; font-weight: 600; }
.lead { color: var(--muted); margin: 0 0 1.5rem; }

label { display: block; font-size: .875rem; font-weight: 500; margin: 0 0 .35rem; color: #374151; }

input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: .65rem .8rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: white;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

.field + .field { margin-top: 1rem; }

button, .btn {
  display: inline-block;
  width: 100%;
  padding: .7rem 1rem;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
  transition: background .15s;
}
button:hover, .btn:hover { background: var(--accent-hover); }
button:disabled { background: #9ca3af; cursor: not-allowed; }

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: #f3f4f6; }

.btn-row { margin-top: 1.5rem; }

.alt {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .9rem;
  color: var(--muted);
}
.alt a { color: var(--accent); text-decoration: none; font-weight: 500; }
.alt a:hover { text-decoration: underline; }

.msg { font-size: .875rem; margin: .85rem 0 0; min-height: 1.25rem; }
.msg.error { color: var(--error); }
.msg.success { color: var(--success); }

.pill {
  display: inline-block;
  padding: .2rem .65rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  background: #f3f4f6;
  color: #374151;
}
.pill.pro { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; }

.code-input {
  letter-spacing: .5rem;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
}

.divider {
  height: 1px; background: var(--border); border: 0;
  margin: 1.5rem 0;
}

.kvline {
  display: flex; justify-content: space-between; align-items: center;
  padding: .65rem 0;
  font-size: .95rem;
}
.kvline + .kvline { border-top: 1px solid var(--border); }
.kvline .k { color: var(--muted); }
.kvline .v { font-weight: 500; }

.center { text-align: center; }
.small { font-size: .85rem; color: var(--muted); }
