/*
 * The sign-in page.
 *
 * It is served without a session, so it cannot use the app's stylesheet: that
 * one is served by the app, and the app is behind the gate. The page is
 * therefore self-contained, and it is written to look like the app without
 * depending on it.
 */

:root {
  --fg: #1c1c1c;
  --fg-muted: #5c5c5c;
  --border: #c8c8c8;
  --accent: #1f6fb2;
  --danger: #a12a1f;
  --radius: 6px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: #f4f4f2;
  color: var(--fg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  width: 100%;
  max-width: 340px;
}

.login__title {
  font-size: 1.35em;
  margin: 0;
}

.login__sub {
  color: var(--fg-muted);
  font-size: 0.85em;
  margin: 2px 0 22px;
}

.login__reason {
  background: #fff3d6;
  border: 1px solid #d9a441;
  border-radius: var(--radius);
  color: #6b4a06;
  font-size: 0.85em;
  margin: 0 0 16px;
  padding: 8px 10px;
}

.login__form {
  display: flex;
  flex-direction: column;
}

.login__label {
  font-size: 0.8em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}

.login__input {
  font: inherit;
  color: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 14px;
  background: #fff;
}

.login__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.login__button {
  font: inherit;
  font-size: 0.95em;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 9px 14px;
  cursor: pointer;
}

.login__button:hover { background: #1a5d97; }

.login__button[disabled] {
  background: #9db9d4;
  border-color: #9db9d4;
  cursor: default;
}

.login__error {
  color: var(--danger);
  font-size: 0.85em;
  margin: 14px 0 0;
}
