form {
  .button-wrapper {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
  }

  /* Inputs */

  .form-label {
    display: none;
  }

  span.required {
    color: $error-color;
    font-weight: 700;
    font-size: 1.2rem;
  }

  .form-input[type="range"] {
    appearance: slider-horizontal;
    &:focus {
      box-shadow: none;
      border: none;
    }
  }

  .form-input[type="text"],
  .form-input[type="email"],
  .form-input[type="password"],
  textarea.form-input {
    background: lighten($dark-color, 62);
    border: 0;
    border-radius: 0;
    color: $dark-color;
    display: block;
    outline: 0;
    padding: 1em;
    text-decoration: none;
    width: 100%;
    height: 2.75em;
    text-size-adjust: 1.5;
    font-size: 15pt;

    @include breakpoint(md) {
      font-size: 11pt;
    }

    &::placeholder {
      color: $dark-color;
      opacity: 0.5;
    }

    &:invalid {
      box-shadow: none;
    }

    &:focus {
      box-shadow: inset 0 0 0 2px $primary-color;
    }
  }

  textarea.form-input {
    padding: 0.65em 1em;
    height: 7em;
    resize: vertical;
  }

  .form-field.half {
    float: left;
    width: 50%;
    @include breakpoint(sm) {
      float: none;
      width: 100%;
    }
  }

  .form-field.half.left {
    padding: 0 0.65em 0 0;
    @include breakpoint(sm) {
      padding: 0;
    }
  }

  .form-field.half.right {
    padding: 0 0 0 0.65em;
    @include breakpoint(sm) {
      padding: 0;
    }
  }

  /** Reset some defaults for Quark Theme **/
  .form-group:not(.form-field-toggleable) {
    .checkboxes {
      display: inherit;

      label {
        display: inherit;
        padding: (($control-size-sm - $line-height) / 2) $control-padding-x (($control-size-sm - $line-height) / 2)
          ($control-icon-size + $control-padding-x);
        margin: inherit;

        &:before {
          display: none;
        }
      }
    }
  }

  .form-group:not(:last-child) {
    margin-bottom: 1.2rem;
  }
}

#grav-login {
  > form {
    margin: 2rem auto 0;
    max-width: 350px;
  }
  .form-label {
    display: none;
  }
  .form-data {
    margin: 1rem 0;
  }
  .form-input {
    text-align: center;
  }
  .button-wrapper {
    text-align: right;

    .form-data.rememberme {
      margin: 0;
      float: left;
    }
  }

  .login-form {
    button[type="submit"] {
      @include button-primary;
    }
  }

  .twofa-form {
    button[type="submit"]:first-child {
      @include button-primary;
      float: right;
      margin-left: 4px;
    }
  }
}

.hidden {
  display: none;
}