/* Минимальный стиль кабинета: без фреймворков и сборщика (spec § 3.2). */

:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --border: #d8dbe0;
  --text: #1d2129;
  --muted: #6b7280;
  --accent: #1f6feb;
  --danger: #b42318;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.company { font-weight: 600; }
.user { color: var(--muted); }

.content {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.card-narrow {
  max-width: 380px;
  margin: 24px auto;
}

h1 {
  margin: 0 0 20px;
  font-size: 20px;
}

label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  margin-bottom: 16px;
  padding: 9px 10px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

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

button {
  padding: 9px 18px;
  font: inherit;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

button:hover { filter: brightness(1.05); }

.link-button {
  padding: 0;
  color: var(--accent);
  background: none;
  text-decoration: underline;
}

.inline { display: inline; }

.error {
  margin: 0 0 16px;
  padding: 10px 12px;
  color: var(--danger);
  background: #fdecea;
  border: 1px solid #f3c2bd;
  border-radius: 6px;
}

.footer {
  padding: 16px 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
