/* Zajednički izgled login i OAuth stranica. */
:root {
  --bg: #f4f5f7;
  --card: #ffffff;
  --text: #1c2330;
  --muted: #5d6676;
  --line: #d9dde4;
  --accent: #0b5cad;
  --accent-text: #ffffff;
  --error-bg: #fdecec;
  --error-text: #8a1c1c;
  --ok-bg: #e8f4ec;
  --ok-text: #1d5a32;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161d;
    --card: #1b212b;
    --text: #e6e9ee;
    --muted: #9aa3b2;
    --line: #2d3542;
    --accent: #4d9be6;
    --accent-text: #0b1220;
    --error-bg: #3a1c1f;
    --error-text: #f2b8b8;
    --ok-bg: #18301f;
    --ok-text: #a8dcb8;
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 100%;
  max-width: 440px;
  padding: 28px 24px;
}

.brand {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 6px;
}

h1 { font-size: 22px; line-height: 1.3; margin: 0 0 18px; }

p { margin: 0 0 14px; }

.muted { color: var(--muted); font-size: 14px; }

label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }

input[type="email"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0 0 16px;
}

input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }

button, .button {
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button.primary, .button.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

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

button[disabled] { opacity: 0.6; cursor: default; }

.wide { width: 100%; }

.note { padding: 10px 12px; border-radius: 6px; margin: 0 0 14px; font-size: 14px; }

.note.error { background: var(--error-bg); color: var(--error-text); }

.note.ok { background: var(--ok-bg); color: var(--ok-text); }

dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 16px; font-size: 14px; }

dt { color: var(--muted); }

dd { margin: 0; word-break: break-word; }

ul { margin: 0 0 16px; padding-left: 20px; }
