/* Docs sign-in. Same look as the demo sign-in: light card on a soft grey, the brand purple on the button and
   every focus ring. Follows the reader's dark mode. */

:root {
  --brand: #5c31ff;
  --brand-dark: #4a25d6;
  --brand-tint: #f1edff;
  --bg: #f4f4f8;
  --card: #ffffff;
  --text: #1b1b2f;
  --muted: #5f6377;
  --line: #d9dbe6;
  --danger: #b42318;
  --danger-tint: #fef3f2;
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #8b6bff;
    --brand-dark: #a89ae8;
    --brand-tint: #2a2250;
    --bg: #111118;
    --card: #1b1b26;
    --text: #ececf4;
    --muted: #a3a6b8;
    --line: #34364a;
    --danger: #ffb4ab;
    --danger-tint: #3b1a17;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(27, 27, 47, 0.06);
  padding: 28px 24px;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
}

.brand-mark {
  display: inline-block;
  /* The logo image has wide transparent padding around the mark, so it is drawn large and pulled in. */
  width: 104px;
  height: 104px;
  margin: -16px 0 -12px;
}

.wordmark {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.field {
  margin-bottom: 14px;
}

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

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

.field input:focus-visible,
.button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.message {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--brand-tint);
  font-size: 14px;
}

.message.is-error {
  background: var(--danger-tint);
  color: var(--danger);
}

.button {
  width: 100%;
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: #ffffff;
  cursor: pointer;
  margin-top: 4px;
}

.button:hover {
  background: var(--brand-dark);
}

.foot {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
