.tk-signin {
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(112px, 16svh, 164px) 20px 48px;
  background: #010a19;
  color: var(--lc-text-secondary);
}
body:has(.tk-signin) {
  margin: 0;
  color-scheme: dark;
}
.tk-signin-header {
  position: absolute;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  top: 32px;
  left: 32px;
}
.tk-signin-header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.tk-signin-header .tk-signin-brand {
  gap: 4px;
  align-items: flex-start;
}
.tk-signin-header img {
  display: block;
  height: auto;
}
.tk-signin-logo {
  margin-top: 8px;
}
.tk-signin-main {
  display: grid;
  justify-items: center;
  gap: 12px;
}
.tk-signin-main > [role='note'] {
  color: var(--lc-text-secondary);
  font-size: 14px;
}
.tk-signin-panel {
  box-sizing: border-box;
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border: 1px solid var(--lc-border-subtle);
  border-radius: 16px;
  background: var(--lc-surface-raised);
  box-shadow: 0 24px 80px #00000033;
}
.tk-signin-panel h1 {
  margin: 0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: var(--lc-text);
}
.tk-signin-intro {
  margin: 10px 0 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.tk-signin-options {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.tk-signin-options button {
  min-height: 44px;
  gap: 12px;
}
.tk-signin :is(
    button[aria-busy='true'],
    [data-pending-sign-in='google'] [data-sign-in-method='google'],
    [data-pending-sign-in='discord'] [data-sign-in-method='discord'],
    [data-pending-sign-in='email'] [data-sign-in-method='email']
  ) {
  opacity: 1;
  cursor: progress;

  &::before {
    content: '';
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    flex: none;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;

    @media (prefers-reduced-motion: no-preference) {
      animation: tk-signin-spin 0.8s linear infinite;
    }
  }

  &.tk-provider > :is(img, svg) {
    display: none;
  }
}
@keyframes tk-signin-spin {
  to {
    transform: rotate(360deg);
  }
}
.tk-signin .tk-link[aria-busy='true'] {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tk-signin-email button[aria-busy='true'] {
  background: var(--lc-action);
  color: var(--lc-on-action);
}
.tk-order-recovery {
  background: transparent;
}
.tk-order-recovery .is-primary {
  font-weight: 700;
  box-shadow: 0 8px 28px #00000033;
}
.tk-order-recovery .is-ghost {
  min-height: 36px;
  text-decoration: underline;
  text-decoration-color: #ffffff66;
  text-underline-offset: 4px;
}
.tk-claim-summary {
  display: grid;
  gap: 4px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.tk-claim-summary strong {
  color: var(--lc-text);
}
.tk-signin-header:has(.tk-claim-account) {
  right: 32px;
}
.tk-claim-account {
  position: absolute;
  top: 0;
  right: 0;
  max-width: min(42%, 320px);
}
.open-water-page:has(.tk-order-recovery) > [role='note'] {
  position: absolute;
  inset: auto 20px 16px auto;
  font-size: 13px;
  color: var(--lc-text-secondary);
}
@media (max-width: 720px) {
  .tk-signin:has(.tk-claim-account) {
    padding-top: max(132px, 16svh);
  }
  .tk-claim-account {
    top: 48px;
    max-width: 80%;
  }
}
@media (max-width: 540px) {
  .tk-signin {
    padding-top: 122px;
  }
  .tk-signin-header {
    top: 20px;
    left: 20px;
    gap: 12px;
  }
  .tk-signin-header:has(.tk-claim-account) {
    right: 20px;
  }
  .tk-signin-brand img:first-child {
    width: 10px;
  }
  .tk-signin-brand img:last-child {
    width: 19px;
  }
  .tk-signin-logo {
    width: min(56vw, 240px);
  }
  .tk-signin-panel {
    padding: 24px;
  }
}
