/* Tokens and base layout from docs/product/ui-guidelines.md §3–§5. */
:root {
  --bg-page: #F7F8FA;
  --bg-surface: #FFFFFF;
  --border: #E3E6EB;
  --text-primary: #1B1F27;
  --text-secondary: #5B6472;
  --accent: #2F5BEA;
  --accent-hover: #2449C4;
  --error-text: #C62828;
  --error-bg: #FDECEC;
  --info-text: #2F5BEA;
  --info-bg: #EAF0FE;
  --radius: 6px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-primary);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1 { font-size: 24px; margin: 0 0 16px; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 56px;
  padding: 0 24px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}
.topbar__product { font-weight: 600; }
.topbar__profile { display: flex; align-items: center; gap: 16px; }
.topbar__profile form { margin: 0; }
.topbar__user { color: var(--text-secondary); }

.layout { display: flex; max-width: 1440px; }
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 224px;
  padding: 24px 16px;
}
.content { flex: 1; padding: 24px; }

.auth { display: flex; justify-content: center; padding-top: 96px; }
.auth__panel {
  width: 360px;
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.form { max-width: 400px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.field input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.field__error { margin: 0; color: var(--error-text); }
.hint, .empty { color: var(--text-secondary); }

.alert { padding: 8px 12px; border-radius: var(--radius); }
.alert--error { color: var(--error-text); background: var(--error-bg); }
.alert--info { color: var(--info-text); background: var(--info-bg); }

.button {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius);
  background: var(--accent);
  color: #FFFFFF;
  font: inherit;
  cursor: pointer;
}
.button:hover { background: var(--accent-hover); }
.button--link {
  height: auto;
  padding: 0;
  background: none;
  color: var(--accent);
}
.button--link:hover { background: none; color: var(--accent-hover); }
