.auth-page {
  background: linear-gradient(180deg, #131416 0%, #0c0d0f 48%, #0b0c0e 100%);
  --auth-blue: #3274ce;
}

.auth-page .auth-main {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding: 64px 24px;
}

.auth-panel {
  width: min(330px, 100%);
  text-align: center;
}

.auth-logo {
  display: inline-flex;
  margin-bottom: 32px;
  border-radius: 8px;
}

.auth-logo .brand-symbol {
  display: block;
  width: 90px;
  height: 70px;
}

.auth-logo .force-vector {
  top: -15px;
  left: 18px;
}

.auth-logo .force-monogram {
  top: 0;
  left: 0;
}

.auth-panel h1 {
  margin: 0 0 28px;
  color: #f1f2f4;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: -0.4px;
}

.auth-invitation {
  margin: -8px 0 28px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--auth-blue) 45%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--auth-blue) 10%, transparent);
  color: #d6d8de;
  font-size: 14px;
  line-height: 21px;
  text-align: left;
  overflow-wrap: anywhere;
}

.auth-invitation p {
  margin: 0;
}

.auth-invitation p + p {
  margin-top: 6px;
}

.auth-invitation strong {
  color: #f1f2f4;
  font-weight: 500;
}

.auth-invitation-invalid {
  border-color: rgb(229 72 77 / 0.5);
  background: rgb(229 72 77 / 0.1);
}

.auth-accept {
  margin: 0;
}

.auth-divider {
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.auth-methods {
  display: grid;
  gap: 16px;
}

.auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  height: auto;
  padding: 14px 20px;
  border: 1px solid transparent;
  border-radius: 0;
  background: #1d1e21;
  color: #e4e5e8;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.1px;
  transition: background-color 120ms ease, border-color 120ms ease;
}

.auth-last-used {
  flex: none;
  padding: 1px 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 10px;
  line-height: 16px;
}

.auth-button:hover {
  border-color: #393b41;
  background: #282a2f;
}

.auth-primary {
  background: var(--auth-blue);
  color: #fff;
}

.auth-primary:hover {
  border-color: transparent;
  background: #4087dc;
}

.auth-footer {
  margin-top: 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 22px;
  letter-spacing: -0.15px;
}

.auth-footer p {
  margin: 0;
}

.auth-footer .auth-note {
  margin-bottom: 28px;
}

.auth-footer .auth-legal {
  margin-top: 16px;
  font-size: 12px;
  line-height: 18px;
}

.auth-footer a {
  color: #d6d8de;
  text-decoration: none;
}

.auth-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-passkey {
  display: grid;
  gap: 16px;
}

.auth-status {
  margin: 0;
  color: #d6d8de;
  font-size: 13px;
  line-height: 20px;
}

.auth-email {
  display: grid;
  gap: 16px;
  text-align: left;
}

.auth-email label {
  margin-bottom: -6px;
  color: #d6d8de;
  font-size: 14px;
  line-height: 20px;
}

.auth-email input {
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border: 1px solid #393b41;
  border-radius: 12px;
  background: #17181b;
  color: var(--foreground);
  font: 500 14px/20px Inter, sans-serif;
}

.auth-email input::placeholder {
  color: #777c86;
}

.auth-back {
  width: auto;
  min-height: 36px;
  margin: 0 auto;
  padding: 4px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.auth-back:hover {
  color: var(--foreground);
}

.auth-dialog {
  border-color: #393b41;
  border-radius: 20px;
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .auth-button {
    transition: none;
  }
}

a.auth-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }

/* Safari zooms into a field under 16px when it is focused. */
@media (pointer: coarse) {
  .auth-email input {
    font-size: 16px;
  }
}
