/*!
* @license @rakuten-rex/register-desktop v1.0.1 2020-02-14
* _styles.mixin.scss
*
* Copyright (c) 2018-present, Rakuten, Inc.
*
* This source code is licensed under the MIT license found in the LICENSE file in the root directory of this source tree.
*/
@mixin rex-core {
  -webkit-text-size-adjust: 100%;

  // html
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  // body
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen",
    "Ubuntu", "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.5;
  color: #333333;
  text-align: left;
  background-color: inherit;

  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -o-box-sizing: border-box;
  -ms-box-sizing: border-box;
  box-sizing: border-box;

  &:before,
  &:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    -o-box-sizing: border-box;
    -ms-box-sizing: border-box;
    box-sizing: border-box;
  }
}

@mixin rex-register-desktop {
  @include rex-core();
  @include rex-register-desktop-content();
}

@mixin rex-register-desktop-content {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: flex-end;
  justify-content: flex-end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  background-position: 25% 0;
  background-size: cover;
  background-repeat: none;
  height: 100%;

  .rex-demo-form {
    margin: 56px 0 0 0;
    padding: 0;

    fieldset {
      padding: 0;
      border: none;
    }
  }

  .rex-register-desktop-container {
    width: 100vw;
    height: 100vh;
    padding: 4rem 4rem 1.5rem 4.5rem;
    box-sizing: border-box;
    background-color: #ffffff;
    width: 50%;
  }

  &.rex-sign-up-bg-a {
    background-image: url("/demo-register/background_travel.png");
  }

  &.rex-sign-up-bg-b {
    background-image: url("/demo-register/background_ichiba.png");
  }

  &.rex-sign-up-bg-c {
    background-image: url("/demo-register/background_mobile.png");
  }

  .rex-demo-container {
    text-align: center;
  }

  .rex-demo-footer {
    text-align: right;
  }
}
