/* Sign-in and consent pages. Colors follow the developer console and truckerpath.com (brand blue). */
:root {
  --background: #ffffff;
  --foreground: #151517;
  --muted: #f4f4f3;
  --muted-foreground: #5d5e63;
  --border: #ececea;
  --input: #d6d6d3;
  --action: #0e0f0c;
  --action-foreground: #ffffff;
  --brand: #1688ca;
  --brand-muted: #eaf4fb;
  --destructive: #bb3000;
  --destructive-muted: #faeeeb;
  --ring: #8a8b90;
  --radius: 0.375rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0a0a0a;
    --foreground: #fafafa;
    --muted: #171717;
    --muted-foreground: #a1a1a1;
    --border: rgb(255 255 255 / 10%);
    --input: rgb(255 255 255 / 15%);
    --action: #fafafa;
    --action-foreground: #0a0a0a;
    --brand: #3aa5e0;
    --brand-muted: rgb(22 136 202 / 22%);
    --destructive: #f87171;
    --destructive-muted: rgb(248 113 113 / 12%);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--background);
  color: var(--foreground);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

header img { width: 28px; height: 28px; border-radius: var(--radius); }

main {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 2);
}

h1 { margin: 0 0 0.25rem; font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }

.lead { margin: 0 0 1.5rem; color: var(--muted-foreground); }
.lead strong { color: var(--foreground); font-weight: 600; }

label { display: block; margin: 0 0 0.375rem; font-size: 0.875rem; font-weight: 500; }

input[type="email"], input[type="password"] {
  width: 100%;
  height: 2.75rem;
  margin: 0 0 1rem;
  padding: 0 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: transparent;
  color: inherit;
  font: inherit;
}

input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--ring) 50%, transparent);
  outline-offset: 1px;
}

button {
  width: 100%;
  height: 2.75rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--action);
  color: var(--action-foreground);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:hover { opacity: 0.85; }

button.secondary {
  background: transparent;
  border-color: var(--input);
  color: var(--foreground);
}

.actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }
.actions form { flex: 1; }

.alert {
  margin: 0 0 1rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  background: var(--destructive-muted);
  color: var(--destructive);
  font-size: 0.875rem;
}

.account {
  margin: 1rem 0 1.25rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 0.875rem;
}

button.link {
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-weight: 500;
  text-decoration: underline;
}

ul.scopes { list-style: none; margin: 0; padding: 0; }

ul.scopes li {
  display: flex;
  gap: 0.625rem;
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}

ul.scopes li::before { content: "\2713"; color: var(--brand); font-weight: 600; }

.note { margin: 1.25rem 0 0; color: var(--muted-foreground); font-size: 0.8125rem; }
.note a, a { color: var(--brand); }
