:root {
  color-scheme: light;
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  --border: #e2e4e9;
  --accent: #2f6fed;
  --accent-hover: #2557c4;
  --danger: #d64545;
  --danger-bg: #fdecec;
  --ok-bg: #ecfdf3;
  --ok-text: #036b3e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 1.5rem;
}

.card {
  width: 100%;
  max-width: 400px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.card.wide {
  max-width: 640px;
}

h1 {
  font-size: 1.4rem;
  margin: 0 0 0.25rem;
}

.subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0 0.35rem;
}

input {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  color: var(--text);
  background: var(--card);
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

button {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.7rem;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: default; }

button.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  margin-top: 0.6rem;
}

button.danger {
  background: transparent;
  color: var(--danger);
  border: 1px solid var(--border);
}

.error {
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.85rem;
  display: none;
}

.ok {
  margin-top: 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: var(--ok-bg);
  color: var(--ok-text);
  font-size: 0.85rem;
  display: none;
  word-break: break-all;
}

.footer-link {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-link a { color: var(--accent); text-decoration: none; }

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--ok-bg);
  color: var(--ok-text);
}

ul.clients {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

ul.clients li {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
}

.muted { color: var(--muted); font-size: 0.85rem; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}
