// Layout wrapper
.layout {
  min-width: 100vw;
  min-height: calc(100vh - 50px);
  display: flex;
  padding-top: 50px;

  flex-direction: column;
  align-items: center;

  // Logo
  > a {
    margin-bottom: 30px;

    > img {
      width: 250px;
      transition: 100ms ease-in-out;
    }

    &:hover {
      > img {
        opacity: 0.8;
      }
    }
  }

  h2 {
    color: var(--color-dark);
    margin: 0px;
    font-size: 14px;
    font-weight: 600;
  }
}

// Sizing
.layout__main {
  display: flex;
  flex-direction: column;
  width: calc(100% - 32px);
  max-width: 432px;
}

// Authenticated
.layout__main_auth {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: right;
  padding: 10px;

  img {
    height: 30px;
    width: 30px;
    border-radius: 50%;
  }

  > div {
    display: flex;
    align-items: center;
  }

  h3 {
    margin: 0px;
    font-size: 14px;
    font-weight: 600;
    padding-left: 10px;
  }

  button {
    background-color: transparent;
    border: none;
    padding: 0px;
    text-decoration: underline;

    &:hover {
      opacity: 0.8;
    }
  }
}

// Unauthenticated
.layout__unauthenticated {
  max-width: 432px;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin: 0px 16px;
  text-align: center;

  > p {
    color: var(--color-text-secondary);
    line-height: 1.5;
    margin-top: 0px;
  }

  > button {
    padding: 5px 12px;
    width: 100%;
    font-size: 12px;
    line-height: 20px;
    background-color: var(--color-button);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
    transition: 100ms ease;

    &:hover {
      border-color: rgba(27, 31, 36, 0.15);
      background-color: var(--color-button-hover);
    }
  }
}

// Credits
.layout__credit {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);

  a {
    text-decoration: underline;

    &:hover {
      opacity: 0.8;
    }
  }
}
