/* Public pages: the rules of use and account activation */
:root {
  --bg: #f3f6fb;
  --panel: #ffffff;
  --border: #d9e1ec;
  --accent: #ff7a59;
  --accent-strong: #e85b37;
  --text: #0c1c3f;
  --muted: #54627a;
  --error: #b91c1c;
  --ok: #047857;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(12, 28, 63, 0.08);
}

.rules h1 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 0 0 4px;
}

.rules h2 {
  font-size: 1.1rem;
  margin: 24px 0 6px;
}

.rules p {
  margin: 0 0 10px;
}

.rules-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

a {
  color: var(--accent-strong);
}

/* Activation */
.page-title {
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.lead {
  color: var(--muted);
  margin: 0 0 20px;
}

.rules-box {
  max-height: 46vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 18px 8px;
  margin-bottom: 20px;
  background: #fbfcfe;
}

.rules-box .rules h1 {
  font-size: 1.2rem;
  margin-top: 14px;
}

.rules-box .rules h2 {
  font-size: 1rem;
}

.field {
  display: block;
  margin-bottom: 14px;
}

.field span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.field input {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.field input:focus,
.accept input:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -6px 0 14px;
}

.accept {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  margin: 6px 0 18px;
}

.accept input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  flex: none;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background: var(--accent-strong);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.message {
  margin: 14px 0 0;
  font-weight: 600;
}

.message.error {
  color: var(--error);
}

.message.ok {
  color: var(--ok);
}

[hidden] {
  display: none !important;
}
