@font-face {
  font-family: "Satoshi";
  src: url("/auth/static/fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/auth/static/fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("/auth/static/fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/auth/static/fonts/inter-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/auth/static/fonts/inter-latin-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/auth/static/fonts/inter-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --v2-bg: #f6f7f9;
  --v2-surface: #ffffff;
  --v2-fg: #1a1d23;
  --v2-fg-muted: #5b626e;
  --v2-line: #e7e9ee;
  --v2-accent: #2563eb;
  --v2-accent-hover: #1d4fd7;
  --v2-accent-soft: #eef3fe;
  --v2-accent-ring: rgba(37, 99, 235, 0.18);
  --v2-ok: #0e9f6e;
  --v2-ok-soft: #e7f6ef;
  --v2-err: #d4382c;
  --v2-err-soft: #fdeeec;
  --v2-sh-md: 0 2px 4px rgba(17, 24, 39, 0.04), 0 6px 16px -6px rgba(17, 24, 39, 0.12);
  --v2-disp: "Satoshi", "Inter", system-ui, sans-serif;
  --v2-sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--v2-fg);
  background: var(--v2-bg);
  font-family: var(--v2-sans);
  font-size: 15px;
  line-height: 1.5;
}

.wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--v2-surface);
  border: 1px solid var(--v2-line);
  border-radius: 16px;
  box-shadow: var(--v2-sh-md);
  padding: 32px 28px;
}

.wrap.wide .card { max-width: 960px; }

h1 {
  margin: 0 0 8px;
  font-family: var(--v2-disp);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
}

h1 span { color: var(--v2-accent); }

h2 {
  margin: 28px 0 12px;
  font-family: var(--v2-disp);
  font-size: 18px;
  font-weight: 500;
}

.lead, .note {
  color: var(--v2-fg-muted);
  text-align: center;
}

.lead { margin: 0 0 20px; }

.note { margin: 20px 0 0; font-size: 13px; }

.note a, .lead a { color: var(--v2-accent); }

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 500;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[name="code"] {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--v2-line);
  border-radius: 10px;
  background: #fff;
  color: var(--v2-fg);
  font: inherit;
}

input:focus {
  outline: 3px solid var(--v2-accent-ring);
  border-color: var(--v2-accent);
}

button {
  width: 100%;
  margin-top: 18px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: var(--v2-accent);
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:hover { background: var(--v2-accent-hover); }

button.secondary {
  background: var(--v2-accent-soft);
  color: var(--v2-accent);
}

button.secondary:hover { background: #e0e9fd; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-actions button {
  width: auto;
  margin: 0;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.check input { width: auto; height: auto; }

.error, .success {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
}

.error {
  background: var(--v2-err-soft);
  color: var(--v2-err);
}

.success {
  background: var(--v2-ok-soft);
  color: var(--v2-ok);
}

.qr {
  display: flex;
  justify-content: center;
  margin: 8px 0 12px;
}

.qr svg { width: 180px; height: 180px; }

.secret, .invite-link {
  text-align: center;
  word-break: break-all;
}

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.codes li {
  padding: 8px;
  text-align: center;
  background: var(--v2-bg);
  border-radius: 8px;
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--v2-line);
  text-align: left;
  vertical-align: top;
}

th { color: var(--v2-fg-muted); font-weight: 500; }

.invite button { max-width: 220px; }
