@font-face {
  font-family: Inter;
  src: url("./Inter-variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Nunito Sans";
  src: url("./NunitoSans-variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --background: #101311;
  --surface: #181d19;
  --input: #111613;
  --text: #f5f3ee;
  --muted: #c3c3bc;
  --placeholder: #a6b4ad;
  --accent: #9ed8ce;
  --edge: #617a6f;
  --rule: #353f39;
  --error: #ffb3ad;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--text);
  background: var(--background);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.auth-page {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100dvh;
  padding: clamp(16px, 5vh, 54px) 16px 18px;
}
.auth-card {
  width: min(100%, 456px);
  min-height: 600px;
  border: 1px solid #52675e;
  border-radius: 14px;
  background: repeating-linear-gradient(137deg, #ffffff04 0 1px, transparent 1px 4px),
    linear-gradient(135deg, #1d221e, #121714 75%);
}
.auth-header {
  min-height: 59px;
  padding: 12px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #48574f;
}
.auth-logo {
  font: 750 24px / 1.05 Inter, system-ui, sans-serif;
  text-decoration: none;
}
.auth-logo span { color: #ef494d; }
.auth-return { color: var(--muted); font-size: 13px; text-decoration: none; }
a.auth-return:hover { color: var(--text); }
.auth-content { padding: 0 28px 28px; }
.auth-modes {
  display: flex;
  gap: 16px;
  margin: 0 0 17px;
  border-bottom: 1px solid var(--rule);
}
.auth-modes :is(a, button, span) {
  position: relative;
  padding: 16px 4px 12px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}
.auth-modes :is(a, button, span)[aria-current] { color: var(--accent); }
.auth-modes :is(a, button, span)[aria-current]::after {
  position: absolute;
  inset: auto 0 -1px;
  border-bottom: 2px solid var(--accent);
  content: "";
}
.auth-card h1, .auth-dialog h2 {
  margin: 0;
  font: 760 clamp(25px, 5.4vw, 31px) / 1.14 Inter, system-ui, sans-serif;
  letter-spacing: -.022em;
}
.auth-card h1:focus { outline: none; }
.auth-intro, .auth-help {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.5;
}
.auth-intro { margin: 13px 0 29px; }
#verify-address { overflow-wrap: anywhere; }
.auth-form { display: grid; gap: 16px; }
.auth-field { display: grid; gap: 8px; }
.auth-field label { font-size: 15px; font-weight: 800; }
.auth-field input {
  min-height: 45px;
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--edge);
  border-radius: 9px;
  color: var(--text);
  background: var(--input);
  font-size: 16px;
}
.auth-field input::placeholder { color: var(--placeholder); }
.auth-field input:focus { outline: 1px solid var(--accent); outline-offset: 0; }
.auth-field input[aria-invalid="true"] { border-color: var(--error); }
.auth-password { position: relative; }
.auth-password input { padding-inline-end: 88px; }
.auth-password button {
  position: absolute;
  inset: 0 12px 0 auto;
  margin: auto 0;
}
.auth-link {
  border: 0;
  padding: 0;
  min-height: 30px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.auth-link:hover { color: #c1efe6; }
.auth-forgot { justify-self: end; margin: -10px 0 -8px; }
.auth-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 12px;
  text-decoration: none;
  background: var(--accent);
  color: #13332e;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.auth-primary:hover { background: #b5e7de; }
.auth-primary:disabled, .auth-primary[aria-disabled="true"] {
  background: #252f29;
  color: #a1b0a6;
  border-color: #42554b;
  cursor: default;
}
.auth-register-form > .auth-primary { margin-top: 22px; }
.auth-footer {
  border-top: 1px solid #48574f;
  margin: 20px 0 0;
  padding: 11px 0 0;
  color: var(--muted);
}
.auth-legal { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; }
.auth-legal .auth-link { font-size: 12px; font-weight: 500; }
.auth-kicker { margin: 22px 0 16px; color: var(--accent); font-weight: 800; font-size: 15px; }
.auth-actions { display: grid; justify-items: start; gap: 2px; margin-top: 10px; }
.auth-demo-note, .auth-preview { color: var(--muted); font-size: 12px; line-height: 1.4; }
.auth-demo-note { margin: 12px 0 0; }
.auth-preview { margin: 10px 0 0; }
.auth-help { margin: 4px 0 0; font-size: 14px; min-height: 42px; }
.auth-map-actions { margin-top: 16px; }
.auth-secondary { background: #19231e; border-color: #65877b; color: #ddf2ed; }
.auth-secondary:hover { background: #223a32; }
.auth-map-note { margin: 0 0 11px; color: var(--muted); text-align: center; font-size: 13px; }
.auth-create-company { margin-top: 26px; font-size: 13px; line-height: 1.45; }
.auth-create-company a { text-underline-offset: 2px; }
.auth-complete-action { margin-top: 24px; }
#auth-complete { padding-top: 24px; }
.auth-error { color: var(--error); font-size: 14px; line-height: 1.3; margin: 4px 0 0; }
.auth-dialog {
  position: fixed;
  width: min(420px, calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  overflow: auto;
  border: 1px solid #71897e;
  border-radius: 14px;
  background: #202722;
  color: var(--text);
  padding: 21px 23px;
}
.auth-dialog::backdrop { background: #080c09b8; }
.auth-dialog h2 { font-size: clamp(21px, 5vw, 26px); padding-inline-end: 24px; }
.auth-dialog .auth-intro { margin: 14px 0 21px; }
.auth-dialog .auth-form { gap: 17px; }
#invite-dialog .auth-field { min-height: 121px; align-content: start; }
.auth-close {
  position: absolute;
  inset: 13px 12px auto auto;
  padding: 0;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}
@media (max-width: 465px) {
  .auth-page { align-content: start; padding-inline: 10px; }
  .auth-card { min-height: 0; }
  .auth-header { padding-inline: 16px; }
  .auth-content { padding-inline: 18px; }
}
@media (min-width: 720px) and (max-height: 730px) {
  .auth-page { align-content: start; }
}


.auth-modes button:disabled { cursor: default; }
.auth-mfa { color: var(--muted); font-size: 13px; }
.auth-mfa summary { cursor: pointer; }
.auth-mfa[open] summary { margin-bottom: 8px; }
.auth-error { color: var(--error); }

.auth-access-content { padding-top: 20px; }
.auth-field label:has(input) { display: grid; gap: 8px; }

.auth-modes a {display:inline-flex;align-items:center;text-decoration:none}
