:root {
  color-scheme: light;
  --bg: #fdfdfd;
  --ink: #101214;
  --ink-secondary: rgba(16, 18, 20, 0.64);
  --signal: #e62c2c;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@supports (color: oklch(0 0 0)) {
  :root {
    --signal: oklch(0.6 0.22 27);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.login main {
  min-height: 100svh;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.mark {
  width: 1.02em;
  height: 1.02em;
  flex-shrink: 0;
  transition: transform 760ms cubic-bezier(0.77, 0, 0.175, 1);
}

@media (hover: hover) and (pointer: fine) {
  .lockup:hover .mark {
    transform: rotate(180deg);
  }
}

.wordmark {
  white-space: nowrap;
}

.wordmark-period {
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.05em;
  border-radius: 0.018em;
  background: var(--signal);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--ink);
  color: #fdfdfd;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.01em;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
}

.button:hover {
  background: #282c31;
}

.button:active {
  transform: scale(0.97);
}

.button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.error-message {
  margin: 0;
  max-width: 44ch;
  text-align: center;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .mark,
  .button {
    transition: none;
  }
  .button:active {
    transform: none;
  }
}
