@import '../../styles/index.scss';

.signup-create-account-wrapper {
  margin: 64px 42px 50px 42px;

  .back-button {
    position: fixed;
    top: 56px;
    left: 31px;
    font-size: 24px;
    height: 26px;
    color: #0091ff;
    cursor: pointer;
  }

  .header-container {
    h2 {
      font-size: 21px;
      font-weight: bold;
      margin-top: 0px;
      margin-bottom: 0px;
    }

    .subtitle {
      font-size: 15px;
      height: 40px;
      color: #505050;
      margin-top: 10px;
    }
  }

  .form-container{
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 40px;

    .MuiFormControl-root {
      width: 100%;
    }

    i {
      color: #9aa1ab;
      font-size: 24px;
      cursor: pointer;
    }

    .captcha-container {
      width: 266px;
      height: 55px;
      display: flex;
      flex-direction: row;
      border: solid 1px #d4dae3;

      .captcha-svg {
        flex-grow: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: white;
      }

      .refresh-captcha {
        width: 40px;
        margin: 0px;
        background: transparent;
        background-image: url(../../#{$_PATH_TO_IMAGES}/img-shuffle.svg);
        background-repeat: no-repeat;
        background-position: center;
        cursor: pointer;
      }
    }
  }

  button {
    margin-top: 48px;
  }

  .checkbox-container {
    display: flex;
    align-items: flex-start;

    &:nth-child(2) {
      margin-top: 28px;
    }

    &:nth-child(3) {
      margin-top: 8px;
    }

    .checkmark-label {
      color: #505050;
      font-size: 13px;
      margin-left: 8px;
      
      a {
        color: #0091ff;
        text-decoration: none;
      }
    }
  }
}

@mixin themable($_THEME, $_SECTION_TITLE_COLOR, $_SECTION_SUBTITLE_COLOR, $_INPUT_UNDERLINE_COLOR){
  [data-theme^=#{$_THEME}],
  [data-theme] [data-theme^=#{$_THEME}] {

    .signup-create-account-wrapper {
      .header-container {
        h2 {
          color: $_SECTION_TITLE_COLOR;
        }
    
        .subtitle {
          color: $_SECTION_SUBTITLE_COLOR;
        }
      }
    
      .form-container{
        i {
          color: #9aa1ab;
        }

        span {
          color: $_SECTION_TITLE_COLOR;
        }

        label {
          color: #8a8a8a;

          &.Mui-focused {
            color: #0091ff;
          }

          &.Mui-error {
            color: #ff5555;
          }
        }
    
        input {
          color: $_SECTION_TITLE_COLOR;
        }

        .MuiInput-underline:before {
          border-color: $_INPUT_UNDERLINE_COLOR;
        }
      }
    
      .checkbox-container {    
        .checkmark-label {
          color: $_SECTION_SUBTITLE_COLOR;
        }
      }
    }
  }
}

@include themable($_THEME_LIGHT, $_SECTION_TITLE_COLOR_LIGHT, $_SECTION_SUBTITLE_COLOR_LIGHT, $_INPUT_UNDERLINE_COLOR_LIGHT);
@include themable($_THEME_DARK, $_SECTION_TITLE_COLOR_DARK, $_SECTION_SUBTITLE_COLOR_DARK, $_INPUT_UNDERLINE_COLOR_DARK);