@import '~morningstar-design-system/constants/constants';

@mixin mds-font-reset() {
  font-family: $mds-font-family-sans-serif;
  font-style: normal;
  font-weight: $mds-font-weight-regular;
  line-height: $mds-font-line-height-body;
}

@mixin mds-heading-reset() {
  @include mds-font-reset;
  font-weight: $mds-font-weight-thin;
  line-height: $mds-font-line-height-headings;
}

@mixin mds-body-text-m() {
  @include mds-font-reset;
  font-size: $mds-font-size-m;
  font-weight: $mds-font-weight-light;
}

body, html {
  @include mds-font-reset;
  margin:0; padding: 0;
  height: 100%;
  box-sizing: border-box;
}

h4 {
  @include mds-heading-reset;
  font-size: $mds-font-size-heading-level-4;
}


p {
  @include mds-body-text-m;
}

.sign-in-wrap {
  box-sizing: border-box;
  border-top: 4px solid $mds-color-red-50;
  margin: 0;
  & .is-rtl-language-type{
    direction: rtl;
  }

  .email-support-team{
    text-align: right;
  }

  .link-forgot-password{
    margin-top: 30px;
  }
  .question-text{
    margin-top: 5px;
    font-family: $mds-font-family-sans-serif;
    font-style: normal;
    font-weight: $mds-font-weight-regular;
    text-align: center;
  }

  .sign-in-container {
    background-color: $mds-background-color-white;
    border: $mds-border-container-on-all-backgrounds;
    border-radius: $mds-border-radius-panel;
    box-shadow: $mds-box-shadow-drop;
    margin: $mds-space-8-x auto 0;
    max-width: 360px;
    padding: $mds-space-inset-2-x;
    width: 100%;
  }

  .sign-in-container__logo {
    margin: $mds-space-3-x 0;
    text-align: center;
  }

  .sign-in-container__controls {
    min-height: 110px;
    display: flex;
    flex-direction: row;
    margin: $mds-space-stack-4-x;
    flex-wrap: wrap;

    & .sign-in-container__controls-checkbox {
    }

    & .sign-in-container__checkbox-buttons{
      display: flex;
      flex-direction: column;
      & .checkbox-keep-logged {
        margin: 0 .5px 0 0;
      }
    }

    & .sign-in-container__controls-button {
      flex-grow: 2;
      text-align: right;
    }

    & .sign-in-container__controls-links{
      margin-top: 10%;
      display: flex;
      flex-direction: row;
      justify-content: center;
      flex-grow: 4;
    }
  }
  .sign-in-container__utilities {
    & .mds-button {
      display: block;
    }
  }
    & .text-float-right {
      float: right;
    }
    & .text-float-left {
      float: left;
    }

  .card {
    margin: $mds-space-stack-4-x;
  }

  .footer {
    background-color: $mds-background-color-white;
    border-top: $mds-border-container-on-all-backgrounds;
    bottom: 0;
    left: 0;
    padding: $mds-space-3-x $mds-space-2-x;
    position: absolute;
    right: 0;
  }

  .footer__copyright {
    font-family: $mds-font-family-sans-serif;
    font-style: normal;
    font-weight: $mds-font-weight-regular;
    line-height: $mds-font-line-height-body;
    font-size: $mds-font-size-m;
    font-weight: $mds-font-weight-light;
    color: $mds-text-color-secondary-on-light;
  }

  .footer__links {
    text-align: right;

    & .mds-link {
      margin: $mds-space-inline-right-1-x;
    }
  }
  .password-show-icon {
    float: right;
    font-size: 10px;
    margin-left: -30px;
    margin-top: -30px;
    position: relative;
    z-index: 2;
  }
} //end .sign-in-wrap
