@import '../../_global/styles/mixins';
@import '../../_global/styles/vars';

.login-form {
  position: relative;
  display: block;
  overflow: hidden;
  background-color: var(--theme-color-primary-dimmed-04);
  padding: var(--content-box-padding);
  margin: var(--section-margin) 0;

  fieldset {
    margin: -0.2em 0 0;
    padding: 0;
    border: 0;
  }

  .login-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;

    > div {
      position: relative;
      display: block;
      padding: 0 10px;
      flex: 1 1 50%;
      max-width: 50%;

      @media(max-width: 567px) {
        flex: 1 1 100%;
        max-width: 100%;
      }

      &.terms {
        max-width: 100%;
        flex: 1 1 100%;
        margin-top: 0.3em;
      }
    }
  }

  .terms-text {
    max-width: calc(100% - 45px);
    display: inline-block;

    a {
      @include focus-visible;
    }
  }

  .btn-wrapper {
    text-align: right;
  }

  .submit {
    //@extend .btn;
    //@extend .has-icon;
    color: var(--theme-color-primary);
    @include focus-visible;

    &:hover, &:focus {
      color: var(--theme-color-primary);
      box-shadow: 0 0 0 5px rgba(var(--theme-color-secondary), 0.5);
    }

    &:before {
      @include icon-login;
      font-size: 30px;
      line-height: 1;
    }
  }

  @media(max-width: 767px) {
    padding: calc(var(--content-box-padding) * 1.5) var(--content-box-padding);
  }
}

section.extranet-wrapper {
  .update-wrapper {
    border-top: solid 1px;
    margin-top: 20px;
    padding-top: 20px;
  }
  .update-wrapper .item {
    margin-bottom: 10px;
  }
  .widecol {
    flex: 1 1 66%;max-width: 100%;
  }
}