/* The login page's own styles: the app's look, without the app's files. */
:root {
  --bg: #e9ecef;
  --panel: #ffffff;
  --border: #dde1e5;
  --text: #1b1f23;
  --text-muted: #5c656e;
  --accent: #2563a8;
  --accent-strong: #1d4f86;
  --error: #b42318;
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1013;
    --panel: #161a1e;
    --border: #2d343b;
    --text: #e3e7eb;
    --text-muted: #9aa3ab;
    --accent: #4a8fd9;
    --accent-strong: #6aa6e6;
    --error: #f97066;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
}

.screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: min(360px, 100%);
  padding: 20px 20px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgb(16 24 32 / 0.12);
}

h1 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--text-muted);
}

label {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

input {
  width: 100%;
  padding: 7px 8px;
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 5px;
}

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

.error {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--error);
}

.actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

button {
  padding: 6px 14px;
  font: inherit;
  color: #fff;
  cursor: pointer;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
}

button:hover:not(:disabled) {
  background: var(--accent-strong);
}

button:disabled {
  opacity: 0.6;
}
