.signin {
  display: flex;
  position: relative;
  align-items: center;
  flex-direction: column;
  margin-top: 0;
  padding-inline: 5%;
  background-image: url("/images/bitmap.svg");
  background-position: center;
  background-size: 200px 200px;
  background-repeat: repeat;
  z-index: 2;
}
.signin .inner {
  display: flex;
  flex-direction: column;
  padding-block: 3.6rem;
  max-width: 831px;
  width: 100%;
  .trademark {
    opacity: 0.6;
    margin-bottom: -10px;
    .word {
      font-weight: normal;
      letter-spacing: 2.5px;
    }
  }
  h1 {
    font-size: 68px;
    padding: 0;
    margin: 0;
  }
  a {
    margin-top: 24px;
    font-family: montserr;
    color: var(--col-primary-on);
    text-decoration: none;
    text-align: center;
    align-self: center;
    &:last-child {
      margin-bottom: 16px;
    }
    &:hover {
      color: var(--col-fg);
    }
  }
  span > a {
    margin-left: 3px;
  }
}
@media (width < 863px) {
  .signin .inner {
    .trademark {
      margin-bottom: -4px;
      .word {
        font-size: 24px;
      }
    }
    h1 {
      margin-bottom: 1.5rem;
      font-size: 44px;
    }
  }
}

.signin .auth-modes {
  display: flex;
  align-items: stretch;
  margin-top: 10px;
  & > :not(.divider) {
    flex: 5;
    width: 100%;
    overflow: hidden;
    &:first-child {
      flex: 4;
    }
  }
  form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    button {
      margin-top: 12px;
      padding-block: 16px;
    }
  }
  details {
    cursor: text;
    font-size: 0.9rem;
    transition: background-color 0.1s;
    background-color: transparent;
    box-shadow: none;
    border: none;
    &[open] {
      background-color: var(--col-outline-dim);
    }
    &:has(summary:hover) {
      background-color: var(--col-surface);
    }
    summary {
      cursor: text;
      font-size: 0.95rem;
      letter-spacing: 0.3px;
      padding: 10px 10px 10px 30px;
      &::before {
        left: 10px;
        margin-top: 1.5px;
        font-size: 14px;
        color: var(--col-fg);
      }
    }
    &[open] summary {
      padding: 0 0 0 20px;
      &::before {
        left: 0;
      }
    }
    div {
      padding-top: 4px;
      margin-block: 4px;
      line-height: 1.45;
      font-size: 0.85rem;
      letter-spacing: -0.1px;
      color: var(--col-fg-dim);
    }
  }
}
@media (width < 863px) {
  .signin .auth-modes {
    flex-direction: column;
    & > :not(.divider) {
      flex: unset;
      &:first-child {
        flex: unset;
      }
    }
    details summary {
      font-size: 1rem;
    }
    details div {
      font-size: 0.9rem;
    }
  }
}
@media (width < 720px) {
  .signin .auth-modes {
    flex-direction: row;
    & > :not(.divider) {
      flex: 5;
      &:first-child {
        flex: 4;
      }
    }
    details summary {
      font-size: 0.9rem;
    }
    details div {
      font-size: 0.75rem;
    }
  }
}
@media (width < 611px) {
  .signin .auth-modes {
    flex-direction: column;
    & > :not(.divider) {
      flex: unset;
      &:first-child {
        flex: unset;
      }
    }
    details summary {
      font-size: 1rem;
    }
    details div {
      font-size: 0.9rem;
    }
  }
}

.signin .auth-modes .socials {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  gap: 16px;
  button {
    display: flex;
    align-items: center;
    padding-block: 6px;
    padding-inline: 10px;
    gap: 16px;
    font-size: 0.9rem;
    background-color: var(--col-outline-on);
    border: 3px solid var(--col-outline-on);
    border-radius: 6px;
    white-space: nowrap;
    &:hover {
      background-color: var(--col-outline);
    }
    @media (pointer: coarse) {
      &:hover {
        background-color: var(--col-outline-on);
      }
      &:active {
        background-color: var(--col-outline);
      }
    }
    img {
      width: 36px;
      height: 36px;
    }
  }
}
@media (width < 863px) {
  .signin .auth-modes .socials {
    button {
      font-size: 1rem;
    }
  }
}
@media (width < 720px) {
  .signin .auth-modes .socials {
    button {
      font-size: 0.9rem;
    }
  }
}
@media (width < 611px) {
  .signin .auth-modes .socials {
    button {
      font-size: 1rem;
    }
  }
}

.signin .auth-modes .divider {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 0px;
  margin-top: 10px;
  margin-inline: 10%;
  border-right: 2.2px solid var(--col-fg-off);
  &::after {
    content: "OR";
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: -21.75px;
    height: 56px;
    width: 42px;
    font-size: 1rem;
    letter-spacing: 0.2px;
    font-family: montserr;
    color: var(--col-fg-off);
    background-color: var(--col-bg);
    border: 1.5px solid var(--col-fg-off);
    border-radius: 8px;
  }
}
@media (width < 863px) {
  .signin .auth-modes .divider {
    width: 100%;
    margin-inline: 0;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
    border-bottom: 2.2px solid var(--col-fg-off);
    border-right: none;
    &::after {
      left: auto;
      top: -16.75px;
      height: 32px;
      width: 64px;
    }
  }
}
@media (width < 720px) {
  .signin .auth-modes .divider {
    width: unset;
    margin-block: 0;
    margin-inline: 3rem;
    border-right: 2.2px solid var(--col-fg-off);
    border-left: none;
    &::after {
      top: auto;
      left: -20.75px;
      height: 52px;
      width: 40px;
    }
  }
}
@media (width < 611px) {
  .signin .auth-modes .divider {
    width: 100%;
    margin-inline: 0;
    margin-top: 1.2rem;
    margin-bottom: 2rem;
    border-bottom: 2.2px solid var(--col-fg-off);
    border-right: none;
    &::after {
      left: auto;
      top: -16.75px;
      height: 32px;
      width: 64px;
    }
  }
}

.signin .signup-cta {
  text-align: center;
  margin-top: 2.5rem;
}
@media (width < 863px) {
  .signin .signup-cta {
    margin-top: 4rem;
  }
}
