.fs-auth-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(20, 20, 18, .54);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fs-auth-fade 180ms ease both;
}

.fs-auth-sheet {
  position: relative;
  isolation: isolate;
  width: min(420px, 100%);
  padding: 38px 36px 32px;
  border: 0;
  border-radius: 23px 20px 22px 19px;
  background: var(--surface, #FFFEF9);
  color: var(--ink, #2C2C2A);
  box-shadow: 0 24px 65px rgba(0, 0, 0, .2);
  font-family: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  filter: none !important;
  animation: fs-auth-arrive 240ms cubic-bezier(.2, .75, .25, 1) both;
}

.fs-auth-sheet::before,
.fs-auth-sheet::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fs-auth-sheet::before {
  inset: 1px 2px 2px 1px;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 78%, transparent);
  border-radius: 22px 19px 24px 18px / 20px 23px 19px 22px;
  transform: rotate(.035deg) skewX(-.06deg);
}

.fs-auth-sheet::after {
  inset: 6px 7px 7px 5px;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 17%, transparent);
  border-radius: 18px 21px 17px 22px;
  transform: rotate(-.055deg);
}

.fs-auth-sheet > * { position: relative; z-index: 1; }

.fs-auth-close {
  position: absolute;
  top: 14px;
  right: 15px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, #888780);
  font: 400 22px/1 "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, transform 120ms ease;
}

.fs-auth-close:hover { color: var(--ink, #2C2C2A); background: color-mix(in srgb, var(--ink, #2C2C2A) 7%, transparent); }
.fs-auth-close:active { transform: scale(.94); }
.fs-auth-close:focus-visible { outline: 2px solid var(--accent, #BA7517); outline-offset: 2px; }

.fs-auth-header { text-align: center; }

.fs-auth-sheet--login { padding-top: 34px; }
.fs-auth-sheet--login .fs-auth-title { margin-top: 0; }

.fs-auth-brand {
  display: inline-block;
  color: var(--ink, #2C2C2A);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.75px;
}

.fs-auth-eyebrow {
  margin-top: 16px;
  color: var(--accent, #BA7517);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 1.25px;
  text-transform: uppercase;
}

.fs-auth-title {
  margin: 9px 0 0;
  color: var(--ink, #2C2C2A);
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.6px;
}

.fs-auth-sketch-line {
  display: block;
  width: 78px;
  height: 9px;
  margin: 11px auto 0;
  overflow: visible;
  color: var(--accent, #BA7517);
}

.fs-auth-sketch-line path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

.fs-auth-copy {
  max-width: 310px;
  margin: 9px auto 0;
  color: var(--muted, #888780);
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}

.fs-auth-google {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 25px;
  padding: 12px 16px;
  border: 0;
  border-radius: 14px 12px 15px 11px;
  background: var(--surface, #FFFEF9);
  color: var(--ink, #2C2C2A);
  font: 600 14.5px/1.2 "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  cursor: pointer;
  transition: transform 160ms cubic-bezier(.2, .75, .25, 1), background-color 160ms ease;
}

.fs-auth-google::before,
.fs-auth-google::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.fs-auth-google::before {
  inset: 0;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 82%, transparent);
  border-radius: 14px 11px 15px 12px / 12px 15px 11px 14px;
  transform: rotate(-.08deg) skewX(.04deg);
  transition: border-color 160ms ease, transform 160ms ease;
}

.fs-auth-google::after {
  inset: 3px -1px -2px 3px;
  z-index: 0;
  border-right: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 14%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 14%, transparent);
  border-radius: 11px 14px 12px 15px;
  transform: rotate(.08deg);
}

.fs-auth-google > * { position: relative; z-index: 1; }

.fs-auth-google:hover {
  transform: translateY(-1px);
  background: color-mix(in srgb, var(--accent, #BA7517) 5%, var(--surface, #FFFEF9));
}

.fs-auth-google:hover::before { border-color: color-mix(in srgb, var(--accent, #BA7517) 62%, var(--line, #2C2C2A)); transform: rotate(0deg) skewX(0deg); }
.fs-auth-google:active { transform: translateY(0) scale(.985); }
.fs-auth-google:focus-visible { outline: 2px solid var(--accent, #BA7517); outline-offset: 4px; }
.fs-auth-google svg { flex: 0 0 auto; width: 19px; height: 19px; }

.fs-auth-note {
  position: relative;
  isolation: isolate;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px 11px 13px 10px;
  background: var(--bg, #F5F0E8);
  color: var(--muted, #888780);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.fs-auth-note::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 1px solid color-mix(in srgb, var(--line, #2C2C2A) 19%, transparent);
  border-radius: 12px 10px 13px 11px / 11px 13px 10px 12px;
  transform: rotate(.05deg);
  pointer-events: none;
}

.fs-auth-terms {
  margin: 17px 4px 0;
  color: var(--muted, #888780);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

@keyframes fs-auth-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fs-auth-arrive { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 480px) {
  .fs-auth-backdrop { padding: 16px; }
  .fs-auth-sheet { padding: 34px 23px 27px; }
  .fs-auth-sheet--login { padding-top: 31px; }
  .fs-auth-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .fs-auth-backdrop,
  .fs-auth-sheet { animation-duration: .01ms; }
  .fs-auth-close,
  .fs-auth-google,
  .fs-auth-google::before { transition-duration: .01ms; }
}
