body.entry.entry-landing-page {
  display: block;
  overflow: auto;
  background-color: #424242;
  background-attachment: fixed;
}

.entry-landing {
  width: 100%;
  min-height: 100dvh;
  padding-block: clamp(3.25rem, calc(50dvh - 7rem), 27rem) 2rem;
  --logo-time: 1.3s;
  --tear-start: calc(var(--logo-time) + 40ms);
  --tear-time: 840ms;
  --form-start: calc(var(--tear-start) + var(--tear-time));
}

.entry-landing-brand {
  width: min(calc(100% - 40px), clamp(21rem, 31vw, 593px));
  margin: 0 auto clamp(10px, 1.05vw, 20px);
}

.entry-landing-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.entry-landing-reveal {
  position: relative;
  isolation: isolate;
  padding: clamp(1.8rem, 2.6vw, 3rem) 16px clamp(1.75rem, 2.8vw, 3.25rem);
}

.entry-paper-tear {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  --paper-edge-depth: clamp(16px, 2.65vw, 48px);
  filter: drop-shadow(0 1px 6px #161616a8);
}

.entry-paper-tear::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    url("/assets/login-paper-edge-top.png") center top / 100% var(--paper-edge-depth) no-repeat,
    url("/assets/login-paper-edge-bottom.png") center bottom / 100% var(--paper-edge-depth) no-repeat,
    linear-gradient(#303030, #303030) center /
      100% calc(100% - var(--paper-edge-depth) - var(--paper-edge-depth) + 2px) no-repeat;
  transform-origin: 50% 5%;
}

.entry-landing-content {
  position: relative;
  margin-inline: auto;
  color: #f2f2ef;
  text-align: center;
}

.entry-landing-content .entry-auth {
  width: min(100%, 17.25rem);
  font: 400 0.875rem/1.35 system-ui, "Apple SD Gothic Neo", sans-serif;
}

.entry-landing .entry-visually-hidden,
.entry-landing .entry-field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.entry-landing .entry-form {
  gap: 7px;
  margin: 0;
}

.entry-landing .entry-field input,
.entry-landing .entry-button {
  width: 100%;
  min-height: 35px;
  padding: 5px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  font: inherit;
}

.entry-landing .entry-field input {
  border-color: #656262;
  background: #252525;
}

.entry-landing .entry-field input::placeholder {
  color: #f0eded;
  opacity: 1;
}

.entry-landing .entry-button--secondary {
  margin-top: 7px;
  background: #696767;
}

.entry-landing .entry-button--secondary:hover {
  background: #545252;
}

.entry-landing :is(a, button, input):focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.entry-landing :is(.entry-invite, .entry-error, .entry-landing-notice) {
  color: #e4e0dc;
  font: 400 0.82rem/1.5 system-ui, "Apple SD Gothic Neo", sans-serif;
}

.entry-landing .entry-error {
  color: #ffd9d7;
}

.entry-landing-notice {
  margin: clamp(14px, 1.15vw, 22px) auto 0;
  max-width: 32rem;
}

@media (prefers-reduced-motion: no-preference) {
  .entry-landing--intro .entry-landing-brand {
    animation: entry-logo-arrive var(--logo-time) cubic-bezier(.18, .62, .28, 1) both;
  }

  .entry-landing--intro .entry-paper-tear {
    animation: entry-tear-across var(--tear-time) linear var(--tear-start) both;
  }

  .entry-landing--intro .entry-paper-tear::before {
    animation: entry-tear-open var(--tear-time) cubic-bezier(.22, .72, .25, 1) var(--tear-start) both;
  }

  .entry-landing--intro .entry-landing-content {
    animation: entry-form-arrive 560ms cubic-bezier(.2, .75, .25, 1) var(--form-start) both;
  }

  .entry-landing--intro:focus-within :is(.entry-landing-brand, .entry-paper-tear, .entry-landing-content),
  .entry-landing--intro:focus-within .entry-paper-tear::before {
    animation-duration: 0s;
    animation-delay: 0s;
  }
}

@keyframes entry-logo-arrive {
  from { opacity: 0; transform: translateY(-42px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes entry-tear-across {
  0% { clip-path: inset(0 100% 0 0); }
  28% { clip-path: inset(0 78% 0 0); }
  60% { clip-path: inset(0 27% 0 0); }
  84%, 100% { clip-path: inset(0); }
}

@keyframes entry-tear-open {
  0%, 16% { transform: scaleY(.018); }
  45% { transform: scaleY(.24); }
  76% { transform: scaleY(.88); }
  100% { transform: scaleY(1); }
}

@keyframes entry-form-arrive {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .entry-landing .entry-field input,
  .entry-landing .entry-button {
    min-height: 44px;
    font-size: 1rem;
  }
}
