.auth-shell {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-rows: auto 1fr auto;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
}

.auth-shell__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(
    ellipse 78% 72% at 50% 52%,
    transparent 24%,
    #000 58%,
    transparent 96%
  );
  mask-image: radial-gradient(
    ellipse 78% 72% at 50% 52%,
    transparent 24%,
    #000 58%,
    transparent 96%
  );
}

.auth-shell__grid-lines {
  position: absolute;
  inset: -56px 0 0 -56px;
  opacity: 0.6;
  background-image:
    linear-gradient(to right, var(--color-neutral-200) 1px, transparent 1px),
    linear-gradient(to bottom, var(--color-neutral-200) 1px, transparent 1px);
  background-size: 56px 56px;
  will-change: transform;
  animation: auth-shell-grid-drift 12s linear infinite;
}

@keyframes auth-shell-grid-drift {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(56px, 56px, 0);
  }
}

.auth-shell__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 40px;
}

.auth-shell__home {
  display: inline-block;
  line-height: 0;
}

.auth-shell__logo {
  display: block;
  width: 125px;
  height: 50px;
}

.auth-shell__action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-neutral-500);
  font-size: 14px;
  line-height: 20px;
}

.auth-shell__action-link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--color-neutral-300);
  border-radius: 10px;
  background: #fff;
  padding: 0 18px;
  color: var(--color-neutral-900);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.auth-shell__action-link:hover {
  border-color: var(--color-neutral-400);
  background: var(--color-neutral-50);
  color: var(--color-neutral-900);
}

.auth-shell__action-link:focus-visible {
  outline: 2px solid var(--color-brand-500);
  outline-offset: 2px;
}

.auth-shell__main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 16px 40px;
}

.auth-shell__panel {
  width: 100%;
  max-width: 440px;
  border: 1px solid rgba(29, 35, 49, 0.08);
  border-radius: 20px;
  background: #fff;
  padding: 32px;
  box-shadow: 0 1px 2px rgba(29, 35, 49, 0.04),
    0 24px 48px -16px rgba(29, 35, 49, 0.10);
}

.auth-shell__panel--wide {
  max-width: 760px;
}

.auth-shell__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  padding: 20px 40px;
  color: var(--color-neutral-500);
  font-size: 13px;
  line-height: 20px;
}

.auth-shell__footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
}

.auth-shell__footer a {
  color: var(--color-neutral-600);
  text-decoration: none;
}

.auth-shell__footer a:hover {
  color: var(--color-neutral-900);
  text-decoration: underline;
}

@media (max-height: 760px) {
  .auth-shell__header {
    padding: 12px 40px;
  }

  .auth-shell__main {
    padding: 8px 16px 16px;
  }

  .auth-shell__panel {
    padding: 28px;
  }

  .auth-shell__footer {
    padding: 12px 40px;
  }
}

@media (max-width: 600px) {
  .auth-shell__grid {
    display: none;
  }

  .auth-shell__header {
    padding: 16px 24px;
  }

  .auth-shell__action-prompt {
    display: none;
  }

  .auth-shell__action-link {
    height: 36px;
    padding: 0 14px;
  }

  .auth-shell__main {
    align-items: flex-start;
    padding: 8px 0 32px;
  }

  .auth-shell__panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 16px 24px;
    box-shadow: none;
  }

  .auth-shell__footer {
    padding: 24px;
  }
}
