@use "variables";
@use "sass:color";

berta-login {
  height: 100%;
}

.login-container {
  color: variables.$black;
  display: flex;
  flex-direction: column;
  height: 100%;

  .bt-login-loading {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    align-self: center;
  }

  h3 {
    border-bottom: 0;
    display: block;
  }

  .social-login {
    font-size: variables.$input-font-size;
    margin: 0 1.3em;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;

    a {
      width: 100%;
      height: 37px;
      color: variables.$white;
      display: flex;
      align-items: center;
      margin-bottom: 1.3em;
      padding: 1px 0 1px 0;
      transition: background-color 0.2s;

      & p {
        margin-top: 0;
        font-size: 1rem;
        flex-grow: 2;
      }

      &.facebook {
        background-color: variables.$facebook-color;
        margin-top: 20px;

        & bt-icon-facebook {
          justify-content: center;
          display: flex;
        }

        & svg {
          padding-left: 1px;
          border-bottom-left-radius: 4px;
          border-top-left-radius: 4px;
          width: 37px;
        }

        &:hover {
          background-color: color.adjust(
            variables.$facebook-color,
            $lightness: -10%
          );
        }
      }

      &.google {
        background-color: variables.$google-color;
        margin-bottom: 20px;

        & bt-icon-google {
          background-color: variables.$white;
          border-top-left-radius: 4px;
          border-bottom-left-radius: 4px;
          margin-left: 1px;
          height: 100%;
          width: 37px;
          display: flex;
          justify-content: center;
        }

        & svg {
          width: 20px;
        }

        &:hover {
          background-color: #0c4dff;
        }
      }
    }

    p {
      margin-bottom: 0;
    }
  }

  .error-message {
    color: variables.$error-color;
    font-size: variables.$input-font-size;
    margin: 1.3em 1.3em 0;
  }

  form {
    flex-grow: 1;
    margin: 20px 1.3em;

    .form-group {
      margin: 1.3em 0;
    }

    .buttons {
      text-align: left;
    }

    button {
      display: block;
      font-size: variables.$base-font-size;
      margin-bottom: 1.3em;
      width: 100%;
    }

    a {
      color: variables.$black;
    }
  }

  .footer {
    display: flex;
    font-size: variables.$input-font-size;
    justify-content: space-between;
    padding: 1.3em;
  }
}
