*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #ff8080;
  color: #26292e;
}

body {
  margin: 0;
  background: none;
  color: inherit;
}

.login-page {
  --avatar-w: min(360px, 78vw);
  --elbow-room: 96;
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 100dvh;
  padding: clamp(4.75rem, 8vw, 6.5rem) 1.25rem 4rem;
}

.login-avatar-box {
  position: relative;
  width: var(--avatar-w);
  height: calc(var(--avatar-w) * (722 + var(--elbow-room)) / 1400);
  clip-path: inset(-100vh -100vw 0 -100vw);
}

.login-avatar {
  position: absolute;
  bottom: calc(var(--avatar-w) * (var(--elbow-room) - 440) / 1400);
  left: 0;
  width: var(--avatar-w);
  aspect-ratio: 1400 / 1300;
  pointer-events: none;
}
.login-avatar.is-shown { transition: opacity 0.25s ease-out; }

.login-title {
  position: relative;
  margin: 0;
  color: inherit;
  font-family: "Neely Display Sans", sans-serif;
  font-size: 44px;
  font-weight: 900;
  font-synthesis-weight: none;
  line-height: 1.6;
  letter-spacing: normal;
  text-align: center;
}

.login {
  display: flex;
  align-items: center;
  width: min(407px, 100%);
  height: 52px;
  padding: 0 3.5px 0 15.5px;
  border: 1.5px solid #26292e;
  border-radius: 16px;
  background: #fff;
}

.login:focus-within {
  box-shadow: inset 0 0 0 1.5px #26292e;
}

.login.has-wobble-box {
  border-color: transparent;
  background: none;
  box-shadow: none;
}

.login .wobble-box path {
  stroke: #26292e;
}

.login:focus-within .wobble-box path {
  stroke-width: 3px;
}

.login-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: #26292e;
  font-family: "Neely Text Sans", sans-serif;
  font-size: 20px;
  font-weight: 500;
  outline: none;
}

.login-input::placeholder {
  color: #b2b2b2;
  opacity: 1;
}

.login-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #26292e;
  cursor: pointer;
}

.login-go:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.login-arrow {
  display: block;
  rotate: 90deg;
}

.login.is-busy .login-go {
  opacity: 0.6;
  cursor: progress;
}

.login.is-wrong {
  animation: login-shake 420ms cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes login-shake {
  15%, 85% { translate: -3px 0; }
  30%, 70% { translate: 6px 0; }
  45% { translate: -9px 0; }
  60% { translate: 9px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .login.is-wrong {
    animation: login-blink 420ms steps(1);
  }

  @keyframes login-blink {
    0%, 66% { opacity: 0.4; }
    33%, 100% { opacity: 1; }
  }
}

.login-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
