/* Tabby Sync portal — local, dependency-free stylesheet.
   System font stack only: no web fonts, CDN, or external assets. */

:root {
  --portal-text: #1a1a1a;
  --portal-muted: #4d4d4d;
  --portal-bg: #ffffff;
  --portal-border: #757575;
  --portal-focus: #0b5fff;
  --portal-accent: #0b4ea2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  color: var(--portal-text);
  background: var(--portal-bg);
  line-height: 1.5;
}

.portal-shell {
  max-width: 26rem;
  margin: 2rem auto;
  padding: 1rem;
}

h1 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.portal-note {
  color: var(--portal-muted);
}

.portal-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.25rem;
}

label {
  font-weight: 600;
}

input {
  font: inherit;
  color: inherit;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--portal-border);
  border-radius: 0.25rem;
}

button {
  font: inherit;
  font-weight: 600;
  color: #ffffff;
  background: var(--portal-accent);
  border: 1px solid var(--portal-accent);
  border-radius: 0.25rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
}

/* Visible, keyboard-friendly focus. */
input:focus-visible,
button:focus-visible {
  outline: 3px solid var(--portal-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
