/* Sign-in pages. Light theme, hand-written, no scripts. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #0f172a;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.card {
  width: 100%;
  max-width: 24rem;
  padding: 2rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.logo {
  display: block;
  width: 100%;
  max-width: 15rem;
  height: auto;
  margin: 0 auto 1.5rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
  line-height: 1.25;
  text-align: center;
}

p {
  margin: 0 0 1rem;
}

label {
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 600;
}

input {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #64748b;
  border-radius: 0.5rem;
  background: #ffffff;
  color: inherit;
  font: inherit;
}

.code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.25em;
}

button {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 0;
  border-radius: 0.5rem;
  background: #3b82f6;
  color: #ffffff;
  font: inherit;
  /* Large bold text: white on the brand blue is 3.7:1, enough only at this size and weight. */
  font-size: 1.1875rem;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: #2563eb;
}

input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}

a {
  color: #1d4ed8;
}

.note {
  margin: 1.25rem 0 0;
  color: #475569;
  font-size: 0.875rem;
  text-align: center;
}

.error {
  padding: 0.625rem 0.75rem;
  border: 1px solid #b91c1c;
  border-radius: 0.5rem;
  background: #fef2f2;
  color: #991b1b;
}

@media (max-width: 22rem) {
  body {
    padding: 1rem 0.5rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }
}
