.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;

  & .mist {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 100%, var(--mist-glow), transparent 70%);
  }
}

.letter {
  width: min(480px, 100%);
  padding: 1rem 1.5rem 1.5rem;
  position: relative;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  border-style: solid;
  border-color: transparent;
  border-width: 60px;
  border-image-source: url("/assets/parchment-84c0d865.png");
  border-image-slice: 120 fill;
  border-image-width: 60px;
  border-image-repeat: stretch;

  & header {
    text-align: center;
    margin-bottom: 1.5rem;
  }

  & h1 {
    font-size: 1.75rem;
    font-weight: normal;
    letter-spacing: 0.02em;
  }

  & .seal {
    width: 96px;
    height: 92px;
    margin: 0.5rem auto 0;
    background: url("/assets/wax-seal-f2a20115.png") center/contain no-repeat;
  }

  & .flavor {
    font-style: italic;
    font-size: 0.875rem;
    color: var(--ink-light);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  & .alert {
    font-size: 0.8125rem;
    color: var(--wax);
    text-align: center;
    margin-bottom: 1rem;
  }

  & form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
  }

  & input[type="email"],
  & input[type="password"] {
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--ink);
    background: transparent;
    outline: none;
    border-style: solid;
    border-color: transparent;
    border-width: 14px 18px;
    border-image-source: url("/assets/input-frame-915237b8.png");
    border-image-slice: 50 fill;
    border-image-width: 14px 18px;
    border-image-repeat: stretch;

    &::placeholder {
      color: var(--ink-light);
      opacity: 0.6;
    }

    &:focus {
      filter: brightness(1.02);
    }
  }

  & input[type="submit"] {
    width: 100%;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--parchment-light);
    letter-spacing: 0.03em;
    background: transparent;
    cursor: pointer;
    border-style: solid;
    border-color: transparent;
    border-width: 14px 18px;
    border-image-source: url("/assets/wax-button-f446c1c8.png");
    border-image-slice: 100 fill;
    border-image-width: 14px 18px;
    border-image-repeat: stretch;
    transition: filter 0.2s;

    &:hover {
      filter: brightness(1.1);
    }

    &:active {
      filter: brightness(0.9);
    }
  }

  & hr {
    border: none;
    border-top: 1px solid var(--parchment-dark);
    margin: 0 0 1.25rem;
  }

  & footer {
    font-size: 0.8125rem;
    color: var(--ink-light);
    text-align: center;
    line-height: 1.7;

    & a {
      display: block;
      margin-top: 0.75rem;
      font-size: 0.75rem;
      color: var(--ink-light);
      opacity: 0.7;
      text-decoration: none;

      &:hover {
        opacity: 1;
      }
    }
  }
}
