@font-face {
  font-family: Geist;
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
/* Shared Home tokens, from compensar/app/globals.css and docs/ui-system.md. */
:root {
  color-scheme: dark;
  font-family: Geist, sans-serif;
  --surface-0: hsl(0 0% 3%);
  --surface-1: hsl(0 0% 4.5%);
  --surface-2: hsl(0 0% 6%);
  --surface-3: hsl(0 0% 9%);
  --hairline: hsl(0 0% 100% / 0.075);
  --hairline-strong: hsl(0 0% 100% / 0.12);
  --fg: hsl(0 0% 96%);
  --fg-secondary: hsl(0 0% 76%);
  --fg-muted: hsl(0 0% 60%);
  --fg-subtle: hsl(0 0% 50%);
  --action: hsl(0 0% 96%);
  --action-hover: hsl(0 0% 86%);
  --action-foreground: hsl(0 0% 4%);
  --signal: hsl(111 100% 54%);
  --danger: hsl(0 86% 66%);
  --danger-subtle: hsl(0 86% 66% / 0.1);
  --success-subtle: hsl(111 100% 54% / 0.1);
  background: var(--surface-0);
  color: var(--fg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.page-frame {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}
.site-header {
  border-bottom: 1px solid var(--hairline);
}
.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.brand-symbol {
  width: 23px;
  display: flex;
  align-items: center;
  gap: 3px;
}
.brand-symbol span:first-child {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--fg);
}
.brand-symbol span:last-child {
  width: 8px;
  height: 10px;
  border-radius: 2px 50% 50% 2px;
  background: var(--fg);
}
.brand-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.brand-divider {
  height: 16px;
  width: 1px;
  background: var(--hairline-strong);
}
.brand-product {
  color: var(--fg-muted);
  font-size: 12px;
}
.header-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg-muted);
  font-size: 12px;
}
.header-link:hover {
  color: var(--fg);
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 448px);
  gap: 96px;
  padding-block: 64px;
  align-items: start;
}
.auth-layout[data-session-pending] {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - 64px);
  place-items: center;
}
#session-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.loading-indicator {
  width: 24px;
  height: 24px;
  border: 2px solid var(--hairline-strong);
  border-top-color: var(--fg-secondary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.auth-aside {
  max-width: 560px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--fg-subtle);
  font-size: 11px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  font-size: 32px;
  line-height: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
p {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;
  color: var(--fg-secondary);
  margin: 8px 0 0;
}
.auth-aside > p:not(.eyebrow) {
  max-width: 490px;
}
.capabilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  padding: 0;
  margin: 32px 0 0;
  list-style: none;
}
.capabilities li {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  line-height: 22px;
  color: var(--fg-secondary);
}
.capabilities li::before {
  content: "✓";
  color: var(--fg-subtle);
  font-size: 14px;
}
.account-note {
  border-top: 1px solid var(--hairline);
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  align-items: start;
  gap: 10px;
}
.account-note p {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--fg-muted);
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  flex-shrink: 0;
  margin-top: 7px;
}
.auth-column {
  width: 100%;
  min-width: 0;
}
.mobile-brand {
  display: none;
  color: var(--signal);
}
.page-description {
  margin-top: 8px;
}
.auth-surface {
  border: 1px solid var(--hairline);
  padding: 24px;
  background: var(--surface-1);
  margin-top: 32px;
}
form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
label {
  display: block;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: var(--fg-secondary);
}
label:not(:first-child) {
  margin-top: 12px;
}
input,
select {
  display: block;
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  color: var(--fg);
  background: var(--surface-1);
  border: 1px solid var(--hairline-strong);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
  min-width: 0;
}
input::placeholder {
  color: var(--fg-subtle);
}
input:focus,
select:focus {
  border-color: var(--fg-muted);
  outline: 2px solid hsl(111 100% 54% / 0.35);
  outline-offset: 1px;
}
input[aria-invalid="true"] {
  border-color: var(--danger);
}
.password-control {
  position: relative;
}
.password-control input {
  padding-right: 62px;
}
.password-toggle {
  position: absolute;
  right: 2px;
  top: 2px;
  min-height: 40px;
  height: 40px;
  padding: 0 12px;
  margin: 0;
  width: auto;
  background: transparent;
  color: var(--fg-muted);
  font-size: 12px;
}
.password-toggle:hover {
  background: transparent;
  color: var(--fg);
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--action);
  color: var(--action-foreground);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
button:hover,
.button:hover {
  background: var(--action-hover);
}
form > button:not(.secondary):not(.back-button) {
  margin-top: 16px;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button[aria-busy="true"] {
  cursor: wait;
  opacity: 0.8;
}
button[aria-busy="true"]::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
.secondary {
  background: transparent;
  border-color: var(--hairline-strong);
  color: var(--fg-secondary);
}
.secondary:hover {
  background: var(--surface-2);
  color: var(--fg);
}
.text-button,
.back-button {
  min-height: 32px;
  padding: 4px 0;
  background: transparent;
  color: var(--fg-secondary);
  border: 0;
  border-radius: 2px;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: var(--hairline-strong);
  text-underline-offset: 4px;
}
.text-button:hover,
.back-button:hover {
  background: transparent;
  color: var(--fg);
  text-decoration-color: var(--fg-muted);
}
.back-button {
  width: 100%;
  margin-top: 16px;
  font-size: 13px;
}
.subtle {
  color: var(--fg-muted);
  font-size: 12px;
}
.form-link {
  text-align: right;
  margin-top: 0;
}
.form-link .text-button {
  font-size: 13px;
}
.form-footer {
  border-top: 1px solid var(--hairline);
  padding-top: 20px;
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  line-height: 20px;
}
.form-footer .text-button {
  font-size: 12px;
}
.form-footer + .form-footer {
  border-top: 0;
  padding-top: 0;
  margin-top: 8px;
}
.security-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  color: var(--fg-subtle);
  font-size: 12px;
  line-height: 18px;
}
.security-footer svg {
  height: 14px;
  width: 14px;
  flex-shrink: 0;
}
.notice {
  padding: 12px 14px;
  margin-top: 24px;
  background: var(--surface-3);
  color: var(--fg-secondary);
  font-size: 13px;
  line-height: 20px;
  overflow-wrap: anywhere;
}
.notice[data-tone="error"] {
  color: var(--danger);
  background: var(--danger-subtle);
}
.notice[data-tone="success"] {
  color: var(--fg-secondary);
  background: var(--success-subtle);
}
.field-help {
  font-size: 12px;
  line-height: 18px;
  color: var(--fg-muted);
  margin: 0;
}
p.field-help {
  margin-top: 8px;
}
.setup-progress {
  margin-bottom: 24px;
}
.setup-progress ol {
  display: flex;
  list-style: none;
  gap: 0;
  margin: 0;
  padding: 0;
}
.setup-progress li {
  flex: 1;
  border-top: 2px solid var(--hairline-strong);
  padding-top: 10px;
  font-size: 11px;
  line-height: 16px;
  color: var(--fg-subtle);
}
.setup-progress li[data-state="active"] {
  border-color: var(--fg);
  color: var(--fg);
}
.setup-progress li[data-state="done"] {
  border-color: var(--signal);
  color: var(--fg-muted);
}
.scan-instructions {
  display: flex;
  align-items: start;
  gap: 12px;
}
.scan-instructions h2 {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0;
}
.scan-instructions p {
  font-size: 13px;
  line-height: 20px;
  margin-top: 4px;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 24px;
  width: 24px;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--fg-secondary);
  background: var(--surface-3);
  border-radius: 50%;
}
/* A white QR well is required for reliable scanning in the dark interface. */
.qr-well {
  width: 248px;
  height: 248px;
  padding: 12px;
  margin: 24px auto 16px;
  background: white;
  color: black;
}
#qr {
  display: block;
  width: 224px;
  height: 224px;
  max-width: 100%;
}
.manual-setup {
  padding: 0;
  margin: 0 0 24px;
  text-align: center;
}
summary {
  font-size: 12px;
  color: var(--fg-muted);
  cursor: pointer;
  line-height: 20px;
}
.manual-setup[open] {
  text-align: left;
}
.manual-setup p {
  font-size: 12px;
  line-height: 18px;
  margin-block: 12px;
}
#secret {
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
.otp-input {
  height: 52px;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.45em;
  text-align: center;
  padding-left: calc(12px + 0.45em);
}
#factor-label select {
  margin-top: 8px;
}
#code-help {
  margin-top: 0;
}
#authenticator-help {
  margin-top: 16px;
}
#lost-authenticators {
  margin-top: 16px;
  display: flex;
  margin-inline: auto;
}
.backup-intro {
  text-align: center;
  margin-bottom: 24px;
}
.backup-intro h2 {
  font-size: 16px;
  line-height: 24px;
  margin-top: 16px;
}
.backup-intro p {
  font-size: 13px;
  line-height: 20px;
}
.security-icon,
.success-mark {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hairline-strong);
  color: var(--fg-secondary);
  font-size: 20px;
  margin: 0 auto 20px;
}
.success-mark {
  border: 0;
  color: var(--signal);
  background: var(--success-subtle);
}
#account-ready > p {
  text-align: center;
  margin-top: 0;
}
#account-ready > .button {
  width: 100%;
  margin-top: 24px;
}
.ready-factors {
  display: grid;
  gap: 0;
  margin-top: 24px;
}
.factor-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
}
.factor-state span:last-child {
  font-size: 12px;
  color: var(--fg-muted);
}
.factor-state span:last-child::before {
  content: "✓";
  color: var(--signal);
  padding-right: 6px;
}
.factor-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.factor-list li {
  border-top: 1px solid var(--hairline);
  padding: 14px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
}
.factor-list small {
  display: block;
  color: var(--fg-muted);
  font-size: 12px;
  line-height: 18px;
  margin-top: 4px;
}
.factor-list button {
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
}
.factor-list .remove-confirmation {
  width: 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--fg-muted);
}
.danger {
  color: var(--danger);
  border-color: var(--danger);
  background: transparent;
}
.settings-group {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  padding-top: 24px;
}
.settings-group p {
  font-size: 13px;
  line-height: 20px;
  margin-bottom: 16px;
}
#account-settings h2 {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0;
}
.choice-list {
  display: grid;
}
.choice {
  padding: 16px 0;
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background: transparent;
  color: var(--fg);
  justify-content: space-between;
  text-align: left;
}
.choice:first-child {
  padding-top: 4px;
}
.choice strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.choice small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--fg-muted);
  margin-top: 6px;
}
.choice:hover {
  background: transparent;
  color: var(--fg-secondary);
}
.actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.account-footer {
  margin-top: 24px;
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  text-align: center;
}
#migration-accounts form + form {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  padding-top: 24px;
}
#migration-accounts h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0;
}
.check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-weight: 400;
  line-height: 20px;
}
.check input {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--fg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 10;
  background: var(--action);
  color: var(--action-foreground);
  padding: 12px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 12px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 1023px) {
  .auth-layout {
    display: block;
    padding-block: 48px;
  }
  .auth-aside {
    display: none;
  }
  .auth-column {
    max-width: 448px;
    margin-inline: auto;
  }
  .mobile-brand {
    display: block;
  }
}
@media (max-width: 639px) {
  .page-frame {
    padding-inline: 16px;
  }
  .auth-layout {
    padding-block: 32px;
  }
  h1 {
    font-size: 26px;
    line-height: 32px;
  }
  .auth-surface {
    padding: 20px;
    margin-top: 24px;
  }
  .header-inner {
    height: 64px;
    gap: 12px;
  }
  .brand-product,
  .brand-divider {
    display: none;
  }
  .header-link {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
